eth_feeHistory
Returns the collection of historical gas information.
This method will use 20
Compute Units.
Parameters
blockCount
, String/Integer - The number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. It will return less than the requested range if not all blocks are available.newestBlock
- String - hexadecimal block number, or the string"latest"
,"earliest"
or"pending"
, see the default block parameter.rewardPercentiles
- Integer - A list of values that go up in order, showing how much people are willing to pay to have their transactions processed quickly. These values are based on:Looking at each block in the time period you're interested in
Ranking the transactions by how much extra tip they offered per unit of gas
Calculating the typical tip amount for different levels (percentiles)
Taking into account how much gas each transaction used
This helps you understand what people are typically paying to get their transactions processed at different speed levels.
Returns
oldestBlock
- The lowest number block of the returned range encoded in hexadecimal format.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 fees per gas data points from a single block. All zeroes are returned if the block is empty.
Last updated