heidr TypeDocs - v0.0.7
    Preparing search index...

    Class GasService

    Service for gas price calculations and analysis

    Index

    Constructors

    Methods

    • Get gas price for a specific priority level

      Parameters

      • priority: "low" | "average" | "high"

        Priority level (low, average, high)

      Returns Promise<{ baseFee: bigint; gasPrice: bigint }>

      Gas price for the specified priority

    • Get gas prices with low, average, and high priority estimates

      Parameters

      • blockCount: number = 20

        Number of historical blocks to analyze

      Returns Promise<GasPrices>

      Gas prices for different priority levels