eth_feeHistory
Returns base fee per gas and transaction effective priority fee per gas history for the requested block range if available. The range between headBlock-4 and headBlock is guaranteed to be available while retrieving data from the pending block and older history are optional to support. For pre-EIP-1559 blocks, the gas prices are returned as rewards and zeroes are returned for the base fee per gas.
blockCount
and newestBlock
are both required parameters
REQUEST
EXAMPLE
RESPONSE
RESULT FIELDS
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.
BODY
Last updated