Skip to main content

eth_feeHistory RPC Method

Returns the collection of historical gas information.

Updated on
Mar 17, 2026

Parameters

blockCount
string/integer
REQUIRED

The number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. It will return less than the requested range if not all blocks are available

newestBlock
string
REQUIRED

The highest number block of the requested range in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators

rewardPercentiles
integer
REQUIRED

A list of percentile values with a monotonic increase in value. The transactions will be ranked by effective tip per gas for each block in the requested range, and the corresponding effective tip for the percentile will be calculated while taking gas consumption into consideration

Returns

result
object

Fee history result object

oldestBlock
string

Lowest block number in the returned range, hex-encoded

baseFeePerGas
array

Array of per-block base fee values in wei, hex-encoded. Includes one extra entry for the block immediately after the newest returned block

gasUsedRatio
array

Array of per-block gas used ratios (gasUsed / gasLimit) as floats

reward
array

Optional array of per-block priority fee samples in wei, hex-encoded. Each inner array corresponds to the requested reward percentiles for that block; returns zeros for empty blocks

baseFeePerBlobGas
array

Optional array of per-block blob base fee values in wei, hex-encoded. Includes one extra entry for the block immediately after the newest returned block

blobGasUsedRatio
array

Optional array of per-block blob gas used ratios as floats

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free