← Robinhood Chain overview
Robinhood Chain · eth
eth_gasPrice
Returns the current price per gas in wei.
cURL
Endpoint: https://rh-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .
Terminal
curl -X POST https://rh-mainnet.eu1.azxa.io/<api-key> \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'Example request
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_gasPrice",
"params": []
}Result
Gas price
Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3e8"
}Schema
{
"type": "string",
"title": "Gas price",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}