@lelantos-org/sdk / index / AssetInfoWithMeta
Interface: AssetInfoWithMeta โ
Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:31
An asset whose ERC-20 decimals is known. Human-unit conversion is only defined against this variant, so parseAmount / formatAmount reject an unresolved AssetInfo at compile time instead of throwing.
Narrow with hasTokenMeta, or assert with requireTokenMeta.
Extends โ
Properties โ
decimals โ
decimals: number;Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:32
ERC-20 decimals. Undefined when the adapter has no tokenMeta.
Overrides โ
disabled โ
disabled: boolean;Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:18
Owner-flipped. Disabled assets block new deposits; existing notes stay spendable.
Inherited from โ
id โ
id: AssetId;Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:12
MASP registry id โ the asset argument on every wallet method.
Inherited from โ
scale โ
scale: bigint;Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:16
circuit-units โ ERC-20-base-units multiplier.
Inherited from โ
symbol? โ
optional symbol?: string;Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:20
From chain.tokenMeta; undefined when the adapter does not implement it.
Inherited from โ
token โ
token: EvmAddress;Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:14
ERC-20 contract address backing the id.