Skip to main content

eth_gasPrice

Returns the current price per gas in wei.

Parameters

This method doesn't accept any parameters.

Returns

hex encoded unsigned integer

Example request
await provider.request({
method: 'eth_gasPrice',
params: [],
})
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x3e8"
}