Skip to content

@lelantos-org/sdk / index / AssetInfo

Interface: AssetInfo โ€‹

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

Everything known about a registered MASP asset.

scale converts between the two integer spaces: tokenUnits = circuitUnits * scale. Every Wallet amount argument is in circuit units.

Extended by โ€‹

Properties โ€‹

decimals? โ€‹

ts
optional decimals?: number;

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

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


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.


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.


scale โ€‹

ts
scale: bigint;

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

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


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.


token โ€‹

ts
token: EvmAddress;

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

ERC-20 contract address backing the id.

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