Avalanche SDK Client
    Preparing search index...

    Function maxPriorityFeePerGas

    • Get the maximum priority fee per gas for the next block.

      Type Parameters

      • chain extends undefined | Chain

      Parameters

      • client: Client<Transport, chain>

        The client to use.

      Returns Promise<string>

      The maximum priority fee per gas for the next block. MaxPriorityFeePerGasReturnType

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

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

      const maxPriorityFeePerGas = await maxPriorityFeePerGas(client)