Skip to content

@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 โ€‹

ts
decimals: number;

Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:32

ERC-20 decimals. Undefined when the adapter has no tokenMeta.

Overrides โ€‹

AssetInfo.decimals


disabled โ€‹

ts
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 โ€‹

AssetInfo.disabled


id โ€‹

ts
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 โ€‹

AssetInfo.id


scale โ€‹

ts
scale: bigint;

Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:16

circuit-units โ†’ ERC-20-base-units multiplier.

Inherited from โ€‹

AssetInfo.scale


symbol? โ€‹

ts
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 โ€‹

AssetInfo.symbol


token โ€‹

ts
token: EvmAddress;

Defined in: @lelantos-org/sdk/dist/wallet/assets.d.ts:14

ERC-20 contract address backing the id.

Inherited from โ€‹

AssetInfo.token

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