v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
Ethereum API

eth_feeHistory

Returns fee data for historical blocks

post/eth_feeHistory

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns fee history data

jsonrpcstring
idinteger

Example response

{
  "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
    ]
  }
}