Avalanche SDK Client
    Preparing search index...

    Function isBootstrapped

    • Check whether a given chain is done bootstrapping.

      Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<IsBootstrappedReturnType>

      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"
      })