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).

JSON-RPC Method

eth_gasPrice

Released under the MIT License.