Asset
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / index / Asset
Type Alias: Asset
Section titled “Type Alias: Asset”Asset:
object
Defined in: packages/algo-ts/src/reference.ts:122
An Asset on the Algorand network.
Type declaration
Section titled “Type declaration”clawback
Section titled “clawback”
readonlyclawback:Account
Clawback address
creator
Section titled “creator”
readonlycreator:Account
Creator address
decimals
Section titled “decimals”
readonlydecimals:uint64
AssetParams.decimals
defaultFrozen
Section titled “defaultFrozen”
readonlydefaultFrozen:boolean
Frozen by default or not
freeze
Section titled “freeze”
readonlyfreeze:Account
Freeze address
readonlyid:uint64
Returns the id of the Asset
manager
Section titled “manager”
readonlymanager:Account
Manager address
metadataHash
Section titled “metadataHash”
readonlymetadataHash:bytes
Arbitrary commitment
readonlyname:bytes
Asset name
reserve
Section titled “reserve”
readonlyreserve:Account
Reserve address
readonlytotal:uint64
Total number of units of this asset
unitName
Section titled “unitName”
readonlyunitName:bytes
Asset unit name
readonlyurl:bytes
URL with additional info about the asset
balance()
Section titled “balance()”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()”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