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