@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