Skip to content

Asset

Algorand TypeScript


Algorand TypeScript / index / Asset

Asset = object

Defined in: reference.ts:127

Creates a new Asset object represent the asset id 0 (an invalid ID)

readonly clawback: Account

Defined in: reference.ts:198

Clawback address


readonly creator: Account

Defined in: reference.ts:203

Creator address


readonly decimals: uint64

Defined in: reference.ts:153

AssetParams.decimals


readonly defaultFrozen: boolean

Defined in: reference.ts:158

Frozen by default or not


readonly freeze: Account

Defined in: reference.ts:193

Freeze address


readonly id: uint64

Defined in: reference.ts:143

Returns the id of the Asset


readonly manager: Account

Defined in: reference.ts:183

Manager address


readonly metadataHash: bytes<32>

Defined in: reference.ts:178

Arbitrary commitment


readonly name: bytes

Defined in: reference.ts:168

Asset name


readonly reserve: Account

Defined in: reference.ts:188

Reserve address


readonly total: uint64

Defined in: reference.ts:148

Total number of units of this asset


readonly unitName: bytes

Defined in: reference.ts:163

Asset unit name


readonly url: bytes

Defined in: reference.ts:173

URL with additional info about the asset

balance(account): uint64

Defined in: reference.ts:212

Amount of the asset unit held by this account. Fails if the account has not opted in to the asset. Asset and supplied Account must be an available resource

Account

Account

uint64

balance: uint64


frozen(account): boolean

Defined in: reference.ts:221

Is the asset frozen or not. Fails if the account has not opted in to the asset. Asset and supplied Account must be an available resource

Account

Account

boolean

isFrozen: boolean