Class Account

java.lang.Object
com.algorand.algosdk.v2.client.common.PathResponse
com.algorand.algosdk.v2.client.model.Account

public class Account
extends PathResponse
Account information at a given round. Definition: data/basics/userBalance.go : AccountData
  • Field Summary

    Fields
    Modifier and Type Field Description
    Address address  
    java.lang.Long amount
    (algo) total number of MicroAlgos in the account
    java.lang.Long amountWithoutPendingRewards
    specifies the amount of MicroAlgos in the account, without the pending rewards.
    java.util.List<ApplicationLocalState> appsLocalState
    (appl) applications local data stored in this account.
    java.lang.Long appsTotalExtraPages
    (teap) the sum of all extra application program pages for this account.
    ApplicationStateSchema appsTotalSchema
    (tsch) stores the sum of all of the local schemas and global schemas in this account.
    java.util.List<AssetHolding> assets
    (asset) assets held by this account.
    Address authAddr  
    java.math.BigInteger closedAtRound
    Round during which this account was most recently closed.
    java.util.List<Application> createdApps
    (appp) parameters of applications created by this account including app global data.
    java.util.List<Asset> createdAssets
    (apar) parameters of assets created by this account.
    java.math.BigInteger createdAtRound
    Round during which this account first appeared in a transaction.
    java.lang.Boolean deleted
    Whether or not this account is currently closed.
    AccountParticipation participation
    AccountParticipation describes the parameters used by this account in consensus protocol.
    java.lang.Long pendingRewards
    amount of MicroAlgos of pending rewards in this account.
    java.lang.Long rewardBase
    (ebase) used as part of the rewards computation.
    java.lang.Long rewards
    (ern) total rewards of MicroAlgos the account has received, including pending rewards.
    java.lang.Long round
    The round for which this information is relevant.
    Enums.SigType sigType
    Indicates what type of signature is used by this account, must be one of: sig msig lsig or null if unknown
    java.lang.String status
    (onl) delegation status of the account's MicroAlgos Offline - indicates that the associated account is delegated.
    java.lang.Long totalAppsOptedIn
    The count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.
    java.lang.Long totalAssetsOptedIn
    The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
    java.lang.Long totalCreatedApps
    The count of all apps (AppParams objects) created by this account.
    java.lang.Long totalCreatedAssets
    The count of all assets (AssetParams objects) created by this account.
  • Constructor Summary

    Constructors
    Constructor Description
    Account()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String address()  
    void address​(java.lang.String address)
    the account public key
    java.lang.String authAddr()  
    void authAddr​(java.lang.String authAddr)
    (spend) the address against which signing should be checked.
    boolean equals​(java.lang.Object o)  

    Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse

    toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • address

      public Address address
    • amount

      public java.lang.Long amount
      (algo) total number of MicroAlgos in the account
    • amountWithoutPendingRewards

      public java.lang.Long amountWithoutPendingRewards
      specifies the amount of MicroAlgos in the account, without the pending rewards.
    • appsLocalState

      public java.util.List<ApplicationLocalState> appsLocalState
      (appl) applications local data stored in this account. Note the raw object uses `map[int] -> AppLocalState` for this type.
    • appsTotalExtraPages

      public java.lang.Long appsTotalExtraPages
      (teap) the sum of all extra application program pages for this account.
    • appsTotalSchema

      public ApplicationStateSchema appsTotalSchema
      (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

      public java.util.List<AssetHolding> assets
      (asset) assets held by this account. Note the raw object uses `map[int] -> AssetHolding` for this type.
    • authAddr

      public Address authAddr
    • closedAtRound

      public java.math.BigInteger closedAtRound
      Round during which this account was most recently closed.
    • createdApps

      public java.util.List<Application> createdApps
      (appp) parameters of applications created by this account including app global data. Note: the raw account uses `map[int] -> AppParams` for this type.
    • createdAssets

      public java.util.List<Asset> createdAssets
      (apar) parameters of assets created by this account. Note: the raw account uses `map[int] -> Asset` for this type.
    • createdAtRound

      public java.math.BigInteger createdAtRound
      Round during which this account first appeared in a transaction.
    • deleted

      public java.lang.Boolean deleted
      Whether or not this account is currently closed.
    • participation

      public AccountParticipation participation
      AccountParticipation describes the parameters used by this account in consensus protocol.
    • pendingRewards

      public java.lang.Long pendingRewards
      amount of MicroAlgos of pending rewards in this account.
    • rewardBase

      public java.lang.Long rewardBase
      (ebase) used as part of the rewards computation. Only applicable to accounts which are participating.
    • rewards

      public java.lang.Long rewards
      (ern) total rewards of MicroAlgos the account has received, including pending rewards.
    • round

      public java.lang.Long round
      The round for which this information is relevant.
    • sigType

      public Enums.SigType sigType
      Indicates what type of signature is used by this account, must be one of: sig msig lsig or null if unknown
    • status

      public java.lang.String status
      (onl) delegation 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

      public java.lang.Long totalAppsOptedIn
      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

      public java.lang.Long totalAssetsOptedIn
      The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
    • totalCreatedApps

      public java.lang.Long totalCreatedApps
      The count of all apps (AppParams objects) created by this account.
    • totalCreatedAssets

      public java.lang.Long totalCreatedAssets
      The count of all assets (AssetParams objects) created by this account.
  • Constructor Details

    • Account

      public Account()
  • Method Details

    • address

      public void address​(java.lang.String address) throws java.security.NoSuchAlgorithmException
      the account public key
      Throws:
      java.security.NoSuchAlgorithmException
    • address

      public java.lang.String address() throws java.security.NoSuchAlgorithmException
      Throws:
      java.security.NoSuchAlgorithmException
    • authAddr

      public void authAddr​(java.lang.String authAddr) throws java.security.NoSuchAlgorithmException
      (spend) 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.
      Throws:
      java.security.NoSuchAlgorithmException
    • authAddr

      public java.lang.String authAddr() throws java.security.NoSuchAlgorithmException
      Throws:
      java.security.NoSuchAlgorithmException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object