Get the base fee for the next block.
The client to use.
The base fee for the next block. BaseFeeReturnType
import { createClient, http } from '@avalanche-sdk/client'import { avalanche } from '@avalanche-sdk/client/chains'import { baseFee } from '@avalanche-sdk/client/methods/public'const client = createClient({ chain: avalanche, transport: http(),})const baseFee = await baseFee(client) Copy
import { createClient, http } from '@avalanche-sdk/client'import { avalanche } from '@avalanche-sdk/client/chains'import { baseFee } from '@avalanche-sdk/client/methods/public'const client = createClient({ chain: avalanche, transport: http(),})const baseFee = await baseFee(client)
Get the base fee for the next block.