Asset
Algorand TypeScript / index / Asset
Asset =
object
Defined in: reference.ts:127
Creates a new Asset object represent the asset id 0 (an invalid ID)
Properties
Section titled “Properties”clawback
Section titled “clawback”
readonlyclawback:Account
Defined in: reference.ts:198
Clawback address
creator
Section titled “creator”
readonlycreator:Account
Defined in: reference.ts:203
Creator address
decimals
Section titled “decimals”
readonlydecimals:uint64
Defined in: reference.ts:153
AssetParams.decimals
defaultFrozen
Section titled “defaultFrozen”
readonlydefaultFrozen:boolean
Defined in: reference.ts:158
Frozen by default or not
freeze
Section titled “freeze”
readonlyfreeze:Account
Defined in: reference.ts:193
Freeze address
readonlyid:uint64
Defined in: reference.ts:143
Returns the id of the Asset
manager
Section titled “manager”
readonlymanager:Account
Defined in: reference.ts:183
Manager address
metadataHash
Section titled “metadataHash”
readonlymetadataHash:bytes<32>
Defined in: reference.ts:178
Arbitrary commitment
readonlyname:bytes
Defined in: reference.ts:168
Asset name
reserve
Section titled “reserve”
readonlyreserve:Account
Defined in: reference.ts:188
Reserve address
readonlytotal:uint64
Defined in: reference.ts:148
Total number of units of this asset
unitName
Section titled “unitName”
readonlyunitName:bytes
Defined in: reference.ts:163
Asset unit name
readonlyurl:bytes
Defined in: reference.ts:173
URL with additional info about the asset
Methods
Section titled “Methods”balance()
Section titled “balance()”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
Parameters
Section titled “Parameters”account
Section titled “account”Account
Returns
Section titled “Returns”balance: uint64
frozen()
Section titled “frozen()”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
Parameters
Section titled “Parameters”account
Section titled “account”Account
Returns
Section titled “Returns”boolean
isFrozen: boolean