Virtual TestNets are live! ⚡️ Test and stage dapps on real-time production data.  Schedule Office Hours

eth_feeHistory - Ethereum Sepolia


Returns base fee per gas and transaction effective priority fee per gas history for the requested block range if available.


1. Block Count Number

The number of blocks in the requested range
Example: Integer between 1 and 1024

2. Block Number Quantity or Tag

Hex block number, or the string latest, earliest or pending
Example: i.e. latest or pending

3. Percentiles Number[]

A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.
Example: [25, 50, 75]

Code Examples