Account information at a given round. Definition: data/basics/userBalance.go : AccountData

Implements

Constructors

  • Creates a new Account object.

    Parameters

    • __namedParameters: {
          address: string;
          amount: number | bigint;
          amountWithoutPendingRewards: number | bigint;
          appsLocalState?: indexerModels.ApplicationLocalState[];
          appsTotalExtraPages?: number | bigint;
          appsTotalSchema?: indexerModels.ApplicationStateSchema;
          assets?: indexerModels.AssetHolding[];
          authAddr?: string | Address;
          closedAtRound?: number | bigint;
          createdApps?: indexerModels.Application[];
          createdAssets?: indexerModels.Asset[];
          createdAtRound?: number | bigint;
          deleted?: boolean;
          incentiveEligible?: boolean;
          lastHeartbeat?: number | bigint;
          lastProposed?: number | bigint;
          minBalance: number | bigint;
          participation?: indexerModels.AccountParticipation;
          pendingRewards: number | bigint;
          rewardBase?: number | bigint;
          rewards: number | bigint;
          round: number | bigint;
          sigType?: string;
          status: string;
          totalAppsOptedIn: number | bigint;
          totalAssetsOptedIn: number | bigint;
          totalBoxBytes: number | bigint;
          totalBoxes: number | bigint;
          totalCreatedApps: number | bigint;
          totalCreatedAssets: number | bigint;
      }
      • address: string
      • amount: number | bigint
      • amountWithoutPendingRewards: number | bigint
      • Optional appsLocalState?: indexerModels.ApplicationLocalState[]
      • Optional appsTotalExtraPages?: number | bigint
      • Optional appsTotalSchema?: indexerModels.ApplicationStateSchema
      • Optional assets?: indexerModels.AssetHolding[]
      • Optional authAddr?: string | Address
      • Optional closedAtRound?: number | bigint
      • Optional createdApps?: indexerModels.Application[]
      • Optional createdAssets?: indexerModels.Asset[]
      • Optional createdAtRound?: number | bigint
      • Optional deleted?: boolean
      • Optional incentiveEligible?: boolean
      • Optional lastHeartbeat?: number | bigint
      • Optional lastProposed?: number | bigint
      • minBalance: number | bigint
      • Optional participation?: indexerModels.AccountParticipation
      • pendingRewards: number | bigint
      • Optional rewardBase?: number | bigint
      • rewards: number | bigint
      • round: number | bigint
      • Optional sigType?: string
      • status: string
      • totalAppsOptedIn: number | bigint
      • totalAssetsOptedIn: number | bigint
      • totalBoxBytes: number | bigint
      • totalBoxes: number | bigint
      • totalCreatedApps: number | bigint
      • totalCreatedAssets: number | bigint

    Returns indexerModels.Account

Properties

address: string

the account public key

amount: bigint

total number of MicroAlgos in the account

amountWithoutPendingRewards: bigint

specifies the amount of MicroAlgos in the account, without the pending rewards.

application local data stored in this account. Note the raw object uses map[int] -> AppLocalState for this type.

appsTotalExtraPages?: number

the sum of all extra application program pages for this account.

the sum of all of the local schemas and global schemas in this account. Note: the raw account uses StateSchema for this type.

assets held by this account. Note the raw object uses map[int] -> AssetHolding for this type.

authAddr?: Address

The 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.

closedAtRound?: bigint

Round during which this account was most recently closed.

createdApps?: indexerModels.Application[]

parameters of applications created by this account including app global data. Note: the raw account uses map[int] -> AppParams for this type.

createdAssets?: indexerModels.Asset[]

parameters of assets created by this account. Note: the raw account uses map[int] -> Asset for this type.

createdAtRound?: bigint

Round during which this account first appeared in a transaction.

deleted?: boolean

Whether or not this account is currently closed.

incentiveEligible?: boolean

can the account receive block incentives if its balance is in range at proposal time.

lastHeartbeat?: number

The round in which this account last went online, or explicitly renewed their online status.

lastProposed?: number

The round in which this account last proposed the block.

minBalance: number

MicroAlgo balance required by the account. The requirement grows based on asset and application usage.

AccountParticipation describes the parameters used by this account in consensus protocol.

pendingRewards: bigint

amount of MicroAlgos of pending rewards in this account.

rewardBase?: bigint

used as part of the rewards computation. Only applicable to accounts which are participating.

rewards: bigint

total rewards of MicroAlgos the account has received, including pending rewards.

round: bigint

The round for which this information is relevant.

sigType?: string

the type of signature used by this account, must be one of:

  • sig
  • msig
  • lsig
  • or null if unknown
status: string

voting status of the account's MicroAlgos

  • 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.
totalAppsOptedIn: number

The count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.

totalAssetsOptedIn: number

The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.

totalBoxBytes: number

For app-accounts only. The total number of bytes allocated for the keys and values of boxes which belong to the associated application.

totalBoxes: number

For app-accounts only. The total number of boxes which belong to the associated application.

totalCreatedApps: number

The count of all apps (AppParams objects) created by this account.

totalCreatedAssets: number

The count of all assets (AssetParams objects) created by this account.

encodingSchemaValue: undefined | Schema

Accessors

Methods

Generated using TypeDoc