eth_feeHistory - Ethereum

eth_feeHistory. Returns a list of addresses owned by client

eth_feeHistory - ethereum [Value: 15CU]
Returns a collection of historical gas information.
Use cases

Use cases

  • Retrieve gas price history
  • DApp Authentication: Verify user's Ethereum addresses
  • Account Selection UI: Populate account dropdown menus
Constraints

Constraints

  • Requires access to historical block data
  • High computational load for large data ranges
  • Accuracy depends on node synchronization state
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://eth.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_feeHistory",
  "params": [
    4,
    4,
    4
  ]
}
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "oldestBlock": "0x130b1e6",
    "reward": [
      [
        "0x5041e1e",
        "0xdd221b80"
      ],
      [
        "0x5041e1e",
        "0xb8346df0"
      ],
      [
        "0x55d4a80",
        "0xb2d05e00"
      ],
      [
        "0x4dd9818",
        "0x3b9aca00"
      ]
    ],
    "baseFeePerGas": [
      "0x52d80a82c",
      "0x50f43f659",
      "0x50012de8d",
      "0x4e30357d6",
      "0x57efff9e7"
    ],
    "gasUsedRatio": [
      0.40875283333333334,
      0.45308523333333334,
      0.4091907,
      0.9987537
    ],
    "baseFeePerBlobGas": [
      "0x1",
      "0x1",
      "0x1",
      "0x1",
      "0x1"
    ],
    "blobGasUsedRatio": [
      0.5,
      1,
      0.6666666666666666,
      1
    ]
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
blockCountinteger
newestBlockstring
rewardPercentilesarray_of_integers
optional

Response

200

Response params

array
idinteger
jsonrpcstring
resultarray_of_strings
An array of addresses owned by the client.
array
oldestBlockint64
An array of block base fees per gas.
gasUsedRatioarray_of_numbers
An array representing the ratios of block gas used.
rewardarray_of_arrays_of_strings
A two-dimensional array showing the effective priority fees per gas at the specified block percentiles.
baseFeePerBlobGasarray_of_strings
An array of base fees per blob gas for blocks.
blobGasUsedRatioarray_of_numbers
An array showing the ratios of blob gas used in blocks.