Account
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / index / Account
Type Alias: Account
Account:
object
Defined in: packages/algo-ts/src/reference.ts:109
Represents an Algorand Account and exposes properties and methods for reading account data
Type declaration
authAddress
readonlyauthAddress:Account
Address the account is rekeyed to
Account must be an available resource
balance
readonlybalance:uint64
Account balance in microalgos
Account must be an available resource
bytes
readonlybytes:bytes
Get the accounts address in bytes
minBalance
readonlyminBalance:uint64
Minimum required balance for account, in microalgos
Account must be an available resource
totalAppsCreated
readonlytotalAppsCreated:uint64
The number of existing apps created by this account.
Account must be an available resource
totalAppsOptedIn
readonlytotalAppsOptedIn:uint64
The number of apps this account is opted into.
Account must be an available resource
totalAssets
readonlytotalAssets:uint64
The numbers of ASAs held by this account (including ASAs this account created).
Account must be an available resource
totalAssetsCreated
readonlytotalAssetsCreated:uint64
The number of existing ASAs created by this account.
Account must be an available resource
totalBoxBytes
readonlytotalBoxBytes:uint64
The total number of bytes used by this account’s app’s box keys and values.
Account must be an available resource
totalBoxes
readonlytotalBoxes:uint64
The number of existing boxes created by this account’s app.
Account must be an available resource
totalExtraAppPages
readonlytotalExtraAppPages:uint64
The number of extra app code pages used by this account.
Account must be an available resource
totalNumByteSlice
readonlytotalNumByteSlice:uint64
The total number of byte array values allocated by this account in Global and Local States.
Account must be an available resource
totalNumUint
readonlytotalNumUint:uint64
The total number of uint64 values allocated by this account in Global and Local States.
Account must be an available resource
isOptedIn()
Returns true if this account is opted in to the specified Asset or Application. Note: Account and Asset/Application must be an available resource
Parameters
assetOrApp
Returns
boolean