The client to use. AvalancheCoreClient
The fee configuration. GetFeeConfigReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getFeeConfig } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const feeConfig = await getFeeConfig(client)
Get the fee configuration for the P-Chain.