The client to use. AvalancheCoreClient
The chain ID or alias. IsBootstrappedParameters
Whether the chain is bootstrapped. IsBootstrappedReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { isBootstrapped } from '@avalanche-sdk/client/methods/info'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const isBootstrapped = await isBootstrapped(client, {
chain: "X"
})
Check whether a given chain is done bootstrapping.