The client to use. AvalancheCoreClient
The subnet ID GetSubnetParameters
Information about the subnet. GetSubnetReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getSubnet } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const subnet = await getSubnet(client, {
subnetID: "11111111111111111111111111111111LpoYY"
})
Get information about a subnet.