eth_feeHistory
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns historical gas information, enabling you to track trends over time.
blockCount
: (integer) Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. If blocks in the specified block range are not available, then only the fee history for available blocks is returned.
newestBlock
: (string) Integer representing the highest number block of the requested range, or one of the string tags latest
, earliest
, or pending
.
array
of integers
: (optional) A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.
oldestBlock
: Lowest number block of the returned range expressed as a hexadecimal number.
baseFeePerBlobGas
: Array of base fees per blob gas. Returns zeroes for blocks created before .
blobGasUsedRatio
: Array of blob gas used ratios. These are calculated as the ratio of blobGasUsed
and the max blob gas per block.
baseFeePerGas
: An array of block base fees per gas, including an extra block value. The extra value is the next block after the newest block in the returned range. Returns zeroes for blocks created before .
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.