Skip to main content
POST
Get the gas price

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC protocol version. Always 2.0.

Available options:
2.0
id
integer
default:1
required

Request identifier echoed back in the response.

method
enum<string>
default:eth_gasPrice
required

JSON-RPC method name.

Available options:
eth_gasPrice
params
any[]
required

No parameters.

Response

200 - application/json

JSON-RPC 2.0 response. Errors are reported in-band via an error object with code and message in place of result.

jsonrpc
enum<string>
Available options:
2.0
id
integer
result
string

Gas price in gas-token base units per gas.