Skip to content
On this page

getGasPrice

Returns the current price of gas (in wei).

Usage

ts
import { publicClient } from '.'
 
const gasPrice = await publicClient.getGasPrice() 

Returns

bigint

The gas price (in wei).

Released under the MIT License.