Parameters
- blockCountstring/integerREQUIRED
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
- newestBlockstringREQUIRED
The highest number block of the requested range in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
- rewardPercentilesintegerREQUIRED
A list of percentile values with a monotonic increase in value. The transactions will be ranked by effective tip per gas for each block in the requested range, and the corresponding effective tip for the percentile will be calculated while taking gas consumption into consideration
Returns
- resultobject
Fee history result object
- oldestBlockstring
Lowest block number in the returned range, hex-encoded
- baseFeePerGasarray
Array of per-block base fee values in wei, hex-encoded. Includes one extra entry for the block immediately after the newest returned block
- gasUsedRatioarray
Array of per-block gas used ratios (gasUsed / gasLimit) as floats
- rewardarray
Optional array of per-block priority fee samples in wei, hex-encoded. Each inner array corresponds to the requested reward percentiles for that block; returns zeros for empty blocks
- baseFeePerBlobGasarray
Optional array of per-block blob base fee values in wei, hex-encoded. Includes one extra entry for the block immediately after the newest returned block
- blobGasUsedRatioarray
Optional array of per-block blob gas used ratios as floats