Skip to main content
Defined in EIP-1559
Returns a collection of historical gas information from which you can recompute gas costs and estimate future gas prices.

Parameters

string
required
Number of blocks in the requested range, as a hexadecimal string.
string
required
Highest block number in the requested range (hexadecimal) or “latest”.
array
required
Array of percentile values to sample from each block’s effective priority fees.

Returns

object
Fee history data object containing gas information.

Error Handling

This method is useful for implementing dynamic fee estimation algorithms and understanding network congestion patterns.