Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

getSupply

Read the total supply of a single token.

Signature

function getSupply(
  client: Client,
  parameters: {
    denom: Denom
    height?: number
  },
): Promise<Coin>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const supply = await client.getSupply({ denom: "dango" })
console.log(supply.amount)

Parameters

denomDenom. The token denomination.

heightnumber, optional. Block height to query at. Default 0 (latest).

Returns

Coin{ denom: Denom, amount: string }.

See also