Avalanche SDK Client
    Preparing search index...

    Function getCurrentSupply

    • Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<GetCurrentSupplyReturnType>

      The current supply. GetCurrentSupplyReturnType

      import { createAvalancheCoreClient } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { getCurrentSupply } from '@avalanche-sdk/client/methods/pChain'

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

      const supply = await getCurrentSupply(client, {
      assetID: "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
      })