Avalanche SDK Client
    Preparing search index...

    Function feeConfig

    • Get the fee config for a specific block.

      Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<FeeConfigReturnType>

      The fee config for the specified block. FeeConfigReturnType

      import { createClient, http } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { feeConfig } from '@avalanche-sdk/client/methods/public'

      const client = createClient({
      chain: avalanche,
      transport: http(),
      })

      const feeConfig = await feeConfig(client, { blk: "0x1" })