The client to use. AvalancheCoreClient
The transaction fee. GetTxFeeReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getTxFee } from '@avalanche-sdk/client/methods/info'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const txFee = await getTxFee(client)
Get the transaction fee for this node.