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
total number of MicroAlgos in the accountLong
amountWithoutPendingRewards
specifies the amount of MicroAlgos in the account, without the pending rewards.List<ApplicationLocalState>
appsLocalState
application local data stored in this account.Long
appsTotalExtraPages
the sum of all extra application program pages for this account.ApplicationStateSchema
appsTotalSchema
the sum of all of the local schemas and global schemas in this account.List<AssetHolding>
assets
assets held by this account.Address
authAddr
BigInteger
closedAtRound
Round during which this account was most recently closed.List<Application>
createdApps
parameters of applications created by this account including app global data.List<Asset>
createdAssets
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.Boolean
incentiveEligible
can the account receive block incentives if its balance is in range at proposal time.Long
lastHeartbeat
The round in which this account last went online, or explicitly renewed their online status.Long
lastProposed
The round in which this account last proposed the block.Long
minBalance
MicroAlgo balance required by the account.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
used as part of the rewards computation.Long
rewards
total rewards of MicroAlgos the account has received, including pending rewards.Long
round
The round for which this information is relevant.Enums.SigType
sigType
the type of signature used by this account, must be one of: sig msig lsig or null if unknownString
status
voting 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)
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
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
application local data stored in this account. Note the raw object uses `map[int] -> AppLocalState` for this type.
-
appsTotalExtraPages
public Long appsTotalExtraPages
the sum of all extra application program pages for this account.
-
appsTotalSchema
public ApplicationStateSchema appsTotalSchema
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
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
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
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.
-
incentiveEligible
public Boolean incentiveEligible
can the account receive block incentives if its balance is in range at proposal time.
-
lastHeartbeat
public Long lastHeartbeat
The round in which this account last went online, or explicitly renewed their online status.
-
lastProposed
public Long lastProposed
The round in which this account last proposed the block.
-
minBalance
public Long minBalance
MicroAlgo balance required by the account. The requirement grows based on asset and application usage.
-
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
used as part of the rewards computation. Only applicable to accounts which are participating.
-
rewards
public Long rewards
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
the type of signature used by this account, must be one of: sig msig lsig or null if unknown
-
status
public String status
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
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
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
-
-