eth_gasPrice
Network: Arc · Mainnet · Chain ID 5042 (0x13b2)
Data: full node. Old-block state is not available on Arc; query recent blocks.
Counts as 1 request. See Request Counting.
Returns the current price per gas in wei.
Parameters
None.
Returns
QUANTITY — Integer of the current gas price in wei.
Request
{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": 1
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3b9aca00"
}
0x3b9aca00= 1,000,000,000 wei = 1 Gwei
Code Examples
curl -X POST https://arc-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}'