Check out our new component library - build.abs.xyz!
cURL
curl --request POST \ --url https://api.mainnet.abs.xyz/eth_gasPrice \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "eth_gasPrice", "params": [] }'
{ "jsonrpc": "2.0", "result": "0x17d7840", "id": 1 }
Returns the current gas price in wei
JSON-RPC version
The method to call
Request identifier
No parameters
Returns the current gas price
"2.0"
1
The current gas price in wei
"0x17d7840"
Was this page helpful?