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

getSupplies

Read a paginated map of total supplies across denoms.

Signature

function getSupplies(
  client: Client,
  parameters?: {
    startAfter?: Denom
    limit?: number
    height?: number
  },
): Promise<Coins>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const supplies = await client.getSupplies({ limit: 100 })

Parameters

startAfterDenom, optional. Denom to start after (exclusive).

limitnumber, optional. Maximum entries to return.

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

Returns

CoinsRecord<Denom, string> of supplies.

See also