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

Coin

A { denom, amount } pair representing some quantity of one token.

Definition

type Coin = {
  readonly denom: Denom
  readonly amount: string
}

Fields

denomDenom. Token denomination (e.g. "dango", "bridge/usdc").

amountstring. Amount in base units. String form preserves arbitrary precision.

Construction

import type { Coin } from "@left-curve/sdk"
 
const oneDango: Coin = { denom: "dango", amount: "1000000" }

Notes

  • Always base units (atomic, indivisible). Use formatUnits to display.

See also