eth_feeHistoryHTTP

Returns historical base fees and optional priority-fee percentiles for EIP-1559 gas estimation.

Chain EthereumTransport HTTPTry-it live

How to use

  1. Pick an API key (or paste one) in the Try it panel.
  2. Fill each parameter (order = params array index).
  3. Send request — live against the gateway; counts toward daily quota.

Parameters

JSON-RPC positional arguments — order matches the array sent in params. Index badges below match array positions.

blockCountQUANTITYrequired

Requested number of blocks as a hex quantity. The upstream may return a shorter available range; use oldestBlock and the returned array lengths.

newestBlockQUANTITY|TAGrequired

Highest block of the range — usually "latest", or a hex block number.

Tags
latestearliestsafefinalizedpending
Defaultlatest
rewardPercentilesArray<number>required

Percentiles from 0 to 100 in ascending order, weighted by gas used in each block. Pass [] when reward sampling is not needed; keep this third positional argument.

params array (shape)

eth_feeHistory · paramsjson
1[
2 "0x2",
3 "latest",
4 [
5 25,
6 75
7 ]
8]

Response fields

The result row describes the complete result; other rows describe its object fields or array elements. Indented rows describe nested members. For subscriptions,params.* rows describe later notifications rather than the initial reply.

FieldTypeDescription
oldestBlockQUANTITYFirst block of the returned range.
baseFeePerGasQUANTITY[]Execution base fees in wei for the returned blocks, plus the derived fee for the following block (N + 1 entries). Zero for blocks before EIP-1559.
gasUsedRatioNUMBER[]Gas used divided by the block gas limit, one entry per returned block (N entries).
rewardQUANTITY[][]Gas-weighted priority fees in wei: N rows, one column per requested percentile. May be omitted when percentiles is empty.
baseFeePerBlobGasQUANTITY[]Blob base fees in wei per blob gas, including the following block (N + 1 entries), where exposed by the network and upstream. Zero before EIP-4844.
blobGasUsedRatioNUMBER[]Blob gas used divided by the maximum blob gas per block (N entries), where the network and upstream expose blob-fee history.