Parameters
- blockCountstringREQUIRED
The number of blocks in the requested range in hexadecimal format. 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(earliest or latest)
- 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
- oldestBlockstring
The lowest number block of the returned range encoded in hexadecimal format
- baseFeePerGasarray
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
- gasUsedRatioarray
An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit
- rewardarray
(Optional) An array of effective priority fees per gas data points from a single block. All zeroes are returned if the block is empty