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
Long
amount
(algo) total number of MicroAlgos in the accountLong
amountWithoutPendingRewards
specifies the amount of MicroAlgos in the account, without the pending rewards.List<ApplicationLocalState>
appsLocalState
(appl) applications local data stored in this account.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.List<AssetHolding>
assets
(asset) assets held by this account.Address
authAddr
BigInteger
closedAtRound
Round during which this account was most recently closed.List<Application>
createdApps
(appp) parameters of applications created by this account including app global data.List<Asset>
createdAssets
(apar) parameters of assets created by this account.BigInteger
createdAtRound
Round during which this account first appeared in a transaction.Boolean
deleted
Whether or not this account is currently closed.AccountParticipation
participation
AccountParticipation describes the parameters used by this account in consensus protocol.Long
pendingRewards
amount of MicroAlgos of pending rewards in this account.Long
rewardBase
(ebase) used as part of the rewards computation.Long
rewards
(ern) total rewards of MicroAlgos the account has received, including pending rewards.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 unknownString
status
(onl) delegation status of the account's MicroAlgos Offline - indicates that the associated account is delegated.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.Long
totalAssetsOptedIn
The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.Long
totalBoxBytes
For app-accounts only.Long
totalBoxes
For app-accounts only.Long
totalCreatedApps
The count of all apps (AppParams objects) created by this account.Long
totalCreatedAssets
The count of all assets (AssetParams objects) created by this account.
-
Constructor Summary
Constructors Constructor Description Account()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
address()
void
address(String address)
the account public keyString
authAddr()
void
authAddr(String authAddr)
(spend) the address against which signing should be checked.boolean
equals(Object o)
-
Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse
toString
-
-
-
-
Field Detail
-
address
public Address address
-
amount
public Long amount
(algo) total number of MicroAlgos in the account
-
amountWithoutPendingRewards
public Long amountWithoutPendingRewards
specifies the amount of MicroAlgos in the account, without the pending rewards.
-
appsLocalState
public List<ApplicationLocalState> appsLocalState
(appl) applications local data stored in this account. Note the raw object uses `map[int] -> AppLocalState` for this type.
-
appsTotalExtraPages
public 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 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 BigInteger closedAtRound
Round during which this account was most recently closed.
-
createdApps
public 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 List<Asset> createdAssets
(apar) parameters of assets created by this account. Note: the raw account uses `map[int] -> Asset` for this type.
-
createdAtRound
public BigInteger createdAtRound
Round during which this account first appeared in a transaction.
-
deleted
public 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 Long pendingRewards
amount of MicroAlgos of pending rewards in this account.
-
rewardBase
public Long rewardBase
(ebase) used as part of the rewards computation. Only applicable to accounts which are participating.
-
rewards
public Long rewards
(ern) total rewards of MicroAlgos the account has received, including pending rewards.
-
round
public 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 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 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 Long totalAssetsOptedIn
The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
-
totalBoxBytes
public Long totalBoxBytes
For app-accounts only. The total number of bytes allocated for the keys and values of boxes which belong to the associated application.
-
totalBoxes
public Long totalBoxes
For app-accounts only. The total number of boxes which belong to the associated application.
-
totalCreatedApps
public Long totalCreatedApps
The count of all apps (AppParams objects) created by this account.
-
totalCreatedAssets
public Long totalCreatedAssets
The count of all assets (AssetParams objects) created by this account.
-
-
Method Detail
-
address
public void address(String address) throws NoSuchAlgorithmException
the account public key- Throws:
NoSuchAlgorithmException
-
address
public String address() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
authAddr
public void authAddr(String authAddr) throws 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:
NoSuchAlgorithmException
-
authAddr
public String authAddr() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-