eth_ fee HistoryHTTP
Returns historical base fees and optional priority-fee percentiles for EIP-1559 gas estimation.
EthereumTransport HTTPTry-it liveHow to use
- Pick an API key (or paste one) in the Try it panel.
- Fill each parameter (order = params array index).
- 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.
blockCountQUANTITYrequiredRequested number of blocks as a hex quantity. The upstream may return a shorter available range; use oldestBlock and the returned array lengths.
newestBlockQUANTITY|TAGrequiredHighest block of the range — usually "latest", or a hex block number.
latestearliestsafefinalizedpendinglatestrewardPercentilesArray<number>requiredPercentiles 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)
1[2 "0x2",3 "latest",4 [5 25,6 757 ]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.
| Field | Type | Description |
|---|---|---|
oldest | QUANTITY | First block of the returned range. |
base | QUANTITY[] | 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. |
gas | NUMBER[] | Gas used divided by the block gas limit, one entry per returned block (N entries). |
reward | QUANTITY[][] | Gas-weighted priority fees in wei: N rows, one column per requested percentile. May be omitted when percentiles is empty. |
base | QUANTITY[] | 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. |
blob | NUMBER[] | Blob gas used divided by the maximum blob gas per block (N entries), where the network and upstream expose blob-fee history. |