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
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 history data
The response is of type object
.
Was this page helpful?