Type alias FeeHistory<TQuantity>

FeeHistory<TQuantity>: {
    baseFeePerGas: TQuantity[];
    gasUsedRatio: number[];
    oldestBlock: TQuantity;
    reward?: TQuantity[][];
}

Type Parameters

  • TQuantity = bigint

Type declaration

  • baseFeePerGas: TQuantity[]

    An array of block base fees per gas (in wei). 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: number[]

    An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.

  • oldestBlock: TQuantity

    Lowest number block of the returned range.

  • Optional reward?: TQuantity[][]

    An array of effective priority fees (in wei) per gas data points from a single block. All zeroes are returned if the block is empty.

Generated using TypeDoc