The client to use to make the request AvalancheCoreClient
The blockchain ID GetBlockchainStatusParameters
The blockchain status. GetBlockchainStatusReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getBlockchainStatus } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const status = await getBlockchainStatus(client, {
blockchainID: "11111111111111111111111111111111LpoYY"
})
Get the status of a blockchain.