{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_gasPrice",
  "params": []
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x09184e72a000"
}
Defined in the Ethereum JSON-RPC Specification
Returns the current price per gas in wei.

Parameters

This method does not accept any parameters.

Returns

result
string
A hexadecimal string representing the current gas price in wei.
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_gasPrice",
  "params": []
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x09184e72a000"
}

Error Handling

CodeMessageDescription
4100Requested method not supportedThe method is not supported by the wallet
The result is in wei. To convert to gwei, divide by 10^9.