📍ftm.feeHistory()
Description: Retrieves historical fee data for a range of blocks.
Parameters
Name
Type
Description
blockcount
integer
Number of blocks in the requested range (1–1024). Fewer may be returned if not all blocks are available.
newestBlock
integer
Highest number block of the requested range.
rewardPercentiles
array
(optional)
A monotonically increasing list of percentile values to sample from each block’s effective priority fees per gas, weighted by gas used.
Returns
Type
Description
object
Contains details about historical block fees.
Response Object Structure
Field
Type
Description
oldestBlock
integer
Lowest number block of the returned range.
baseFeePerGas
array
An array of block base fees per gas, including the next block after the newest returned block. Zeroes for pre-EIP-1559 blocks.
gasUsedPerRatio
array
An array of block gas used ratios, calculated as gasUsed / gasLimit
.
reward
(optional)
array
An array of effective priority fees per gas from a single block. All zeroes if the block is empty.
Last updated