The client to use to make the request AvalancheCoreClient
The list of blockchains. GetBlockchainsReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getBlockchains } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const blockchains = await getBlockchains(client)
Get all the blockchains that exist (excluding the P-Chain).