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

    RPC Provider for interacting with EVM chains

    Index

    Constructors

    Methods

    • Estimate fees per gas for EIP-1559 transactions

      Returns Promise<FeeValuesEIP1559>

      Estimated max fee and max priority fee per gas

    • Get balance of an address

      Parameters

      • address: `0x${string}`

        The address to check balance for

      Returns Promise<bigint>

      The balance in wei

    • Get block information

      Parameters

      • params: { blockNumber?: bigint; blockTag?: "latest" }

        Block parameters (blockTag or blockNumber)

      Returns Promise<{}>

      The block data

    • Get fee history for calculating gas price estimates

      Parameters

      • blockCount: number

        Number of blocks to analyze

      • rewardPercentiles: number[]

        Percentiles to calculate (e.g., [25, 50, 75])

      Returns Promise<GetFeeHistoryReturnType>

      Fee history data

    • Get transaction information

      Parameters

      • hash: `0x${string}`

        The transaction hash

      Returns Promise<{} | {} | {} | {} | {}>

      The transaction data