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