POST
/
eth_feeHistory
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
    ]
  }
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_feeHistory
required

The method to call

params
any[]
required

Block count, latest block, and reward percentiles

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns fee history data
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
object

Fee history data