UNPKG

@vechain.energy/gas

Version:

calculate estimated gas usage for transactions

18 lines (17 loc) 539 B
import BigNumber from 'bignumber.js'; export interface FeeMarketOptions { maxFeePerGas?: string | number; maxPriorityFeePerGas?: string | number; } export interface FeeHistoryResponse { oldestBlock: string; baseFeePerGas: string[]; gasUsedRatio: string[]; reward?: string[][]; } export interface FeeHistoryOptions { blockCount: number; newestBlock: string; rewardPercentiles?: number[]; } export default function feeMarket(nodeOrConnex: Connex | string, options?: FeeMarketOptions): Promise<BigNumber>;