Skip to main content

eth_gasPrice

Ethereum API

Returns the current price per gas in wei.

Params

(0)

Result

(Gas price)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Request

await window.ethereum.request({
"method": "eth_gasPrice",
"params": []
});