Avalanche SDK Client
    Preparing search index...

    Function getBlockchainID

    • Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<GetBlockchainIDReturnType>

      The blockchain ID. GetBlockchainIDReturnType

      import { createAvalancheCoreClient } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { getBlockchainID } from '@avalanche-sdk/client/methods/info'

      const client = createAvalancheCoreClient({
      chain: avalanche,
      transport: {
      type: "http",
      url: "<url>",
      },
      })

      const blockchainID = await getBlockchainID(client, {
      alias: "X"
      })