The client to use. AvalancheCoreClient
The node's version. GetNodeVersionReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getNodeVersion } from '@avalanche-sdk/client/methods/info'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const nodeVersion = await getNodeVersion(client)
Get the version of this node.