Skip to content

types/account

@algorandfoundation/algokit-utils / types/account

Table of contents

Classes

Interfaces

Type Aliases

Variables

Type Aliases

AccountAssetInformation

Ƭ AccountAssetInformation: Object

Account asset holding information at a given round.

Type declaration

NameTypeDescription
assetIdbigintThe ID of the asset held.
balancebigintThe current balance of that asset holding.
frozenbooleanWhether or not the asset is frozen for the account.
roundbigintThe round as at which the holding was correct.

Defined in

src/types/account.ts:278


AccountInformation

Ƭ AccountInformation: Object

Account information at a given round.

Type declaration

NameTypeDescription
addressAddressThe account public key
amountWithoutPendingRewardsAlgoAmountThe amount of Algo in the account, without the pending rewards.
appsLocalState?ApplicationLocalState[]Applications local data stored in this account.
appsTotalExtraPages?numberThe sum of all extra application program pages for this account.
appsTotalSchema?ApplicationStateSchema(tsch) stores the sum of all of the local schemas and global schemas in this account. Note: the raw account uses StateSchema for this type.
assets?AssetHolding[]Assets held by this account.
authAddr?AddressThe address against which signing should be checked. If empty, the address of the current account is used. This field can be updated in any transaction by setting the RekeyTo field.
balanceAlgoAmountThe balance of Algo currently held by the account.
createdApps?Application[]Parameters of applications created by this account including app global data.
createdAssets?Asset[](apar) parameters of assets created by this account. Note: the raw account uses map[int] -> Asset for this type.
lastHeartbeatRound?bigintThe round in which this account last went online, or explicitly renewed their online status.
lastProposedRound?bigintThe round in which this account last proposed the block.
minBalanceAlgoAmountAlgo balance required to be held by the account. The requirement grows based on asset and application usage.
participation?AccountParticipationAccountParticipation describes the parameters used by this account in consensus protocol.
pendingRewardsAlgoAmountAmount of Algo of pending rewards in this account.
rewardBase?numberUsed as part of the rewards computation. Only applicable to accounts which are participating.
rewardsAlgoAmountTotal rewards of Algo the account has received, including pending rewards.
sigType?stringIndicates what type of signature is used by this account, must be one of: _ sig _ msig * lsig
statusstringDelegation status of the account’s Algo: _ Offline - indicates that the associated account is delegated. _ Online - indicates that the associated account used as part of the delegation pool. * NotParticipating - indicates that the associated account is neither a delegator nor a delegate.
totalAppsOptedInnumberThe count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.
totalAssetsOptedInnumberThe count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
totalBoxBytes?numberThe total number of bytes used by this account’s app’s box keys and values.
totalBoxes?numberThe number of existing boxes created by this account’s app.
totalCreatedAppsnumberThe count of all apps (AppParams objects) created by this account.
totalCreatedAssetsnumberThe count of all assets (AssetParams objects) created by this account.
validAsOfRoundbigintThe round number for which this information is relevant.

Defined in

src/types/account.ts:129

Variables

DISPENSER_ACCOUNT

Const DISPENSER_ACCOUNT: "DISPENSER"

The account name identifier used for fund dispensing in test environments

Defined in

src/types/account.ts:17