Defined in EIP-1559
Returns a collection of historical gas information from which you can recompute gas costs and estimate future gas prices.
Parameters
Number of blocks in the requested range, as a hexadecimal string.
Highest block number in the requested range (hexadecimal) or “latest”.
Array of percentile values to sample from each block’s effective priority fees.
Returns
Fee history data object containing gas information.Show Fee History Object Properties
Lowest block number in the range (hexadecimal).
Array of block base fees per gas (hexadecimal strings).
Array of block gas utilization ratios (numbers between 0 and 1).
Array of effective priority fee per gas data points for each block (optional).
Error Handling
This method is useful for implementing dynamic fee estimation algorithms and understanding network congestion patterns.