AssetReference
An Algorand Standard Asset (ASA). asset ABI type when used as an argument or return type in a method, uint64 when in an array or state.
Extends
Constructors
new AssetReference()
new AssetReference():
AssetReference
Returns
Inherited from
Properties
clawback
readonlyclawback:Address
The clawback account that can take assets from any account
Inherited from
Source
creator
readonlycreator:Address
The creator of the asset
Inherited from
Source
decimals
readonlydecimals:uint64
The number of decimal places to use when displaying the asset
Inherited from
Source
defaultFrozen
readonlydefaultFrozen:boolean
Whether the asset is frozen by default when created
Inherited from
Source
freeze
readonlyfreeze:Address
The freeze account that can freeze or unfreeze other accounts holdings the asset
Inherited from
Source
id
readonlyid:uint64
The asset index
Inherited from
Source
manager
readonlymanager:Address
The manager that can update the maanger, freeze, and reserve accounts
Inherited from
Source
metadataHash
readonlymetadataHash:StaticBytes<32>
The hash of the assets metadata
Inherited from
Source
name
readonlyname:string
The name of the asset. Must be 32 bytes or less.
Inherited from
Source
reserve
readonlyreserve:Address
The reserve account that holds the assets that are not in circulation
Inherited from
Source
total
readonlytotal:uint64
The total number of units of the asset
Inherited from
Source
unitName
readonlyunitName:string
The short (ticker) name of the asset (ie. USDC)
Inherited from
Source
url
readonlyurl:string
The URL of the assets metadata
Inherited from
Source
zeroIndex
staticreadonlyzeroIndex:AssetID
Asset index 0. Only useful for input validation.
Inherited from
Source
Methods
fromUint64()
staticfromUint64(index):AssetID
Get an Asset instance for the ASA with the given asset index
Parameters
• index: uint64