Check out our new component library - build.abs.xyz!
cURL
curl --request POST \ --url https://api.mainnet.abs.xyz/eth_feeHistory \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "eth_feeHistory", "params": [ "10", "0x3039", [ 25, 50, 75 ] ] }'
{ "jsonrpc": "2.0", "id": 1, "result": { "oldestBlock": "0x3030", "baseFeePerGas": [ "0x7", "0x6", "0x6", "0x5", "0x4", "0x3", "0x3", "0x3", "0x3", "0x3", "0x3" ], "gasUsedRatio": [ 0.5, 0.4, 0.5, 0.4, 0.5, 0.4, 0.5, 0.4, 0.5, 0.4 ] } }
Returns fee data for historical blocks
JSON-RPC version
The method to call
Block count, latest block, and reward percentiles
Request identifier
Returns fee history data
"2.0"
1
Fee history data
Show child attributes
Was this page helpful?