The client to use. AvalancheCoreClient
The network upgrade information. UpgradesReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { upgrades } from '@avalanche-sdk/client/methods/info'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const upgrades = await upgrades(client)
Returns the upgrade history and configuration of the network.