Skip to content

@lelantos-org/sdk / wallet / AmountLike

Type Alias: AmountLike โ€‹

ts
type AmountLike = CircuitAmountLike | string;

Defined in: @lelantos-org/sdk/dist/wallet/amount.d.ts:12

An amount, either exact circuit units (bigint) or a human decimal amount of the token (string).

ts
await wallet.transfer({ to, asset: "USDC", amount: "12.50" });  // 12.50 USDC
await wallet.transfer({ to, asset: "USDC", amount: 1250n });    // circuit units

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub