eth_feeHistory
Returns the base fee for each type of gas and the gas priority fee for historical transactions within the specified block range.
Parameters
BLOCK-COUNT
[required] The block range number in hexadecimal, the single query range is 1 ~ 1024 block numbers.NEWEST-BLOCK
[required] The latest block number.REWARD-PERCENTILES
[optional] A list of increasing percentage values to sample from each block's priority gas, sorted in ascending order and weighted.
Request
Response
oldestBlock
Lowest number block of the returned range expressed as a hexidecimal number.baseFeePerGas
An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.gasUsedRatio
An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.reward
An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.
Last updated