public final class AccountInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccountInfo.AccountInfoBuilder |
Modifier and Type | Method and Description |
---|---|
static AccountInfo.AccountInfoBuilder |
builder() |
boolean |
equals(Object o) |
AccountAddress |
getAccountAddress()
The account address.
|
CCDAmount |
getAccountAmount()
The amount of CCD owned by this account.
|
com.google.common.collect.ImmutableMap<Index,Credential> |
getAccountCredentials()
The credentials associated with this account.
|
AccountEncryptedAmount |
getAccountEncryptedAmount()
If the account has an
AccountEncryptedAmount associated. |
ElgamalPublicKey |
getAccountEncryptionKey()
The encryption key for the account.
|
AccountIndex |
getAccountIndex()
A positive and sequential index of the account which is increasing in the order of creation.
|
ReleaseSchedule |
getAccountReleaseSchedule()
If there is a release schedule associated with the account.
|
int |
getAccountThreshold()
The account threshold for this account i.e., how
many credentials that needs to sign transactions for this account.
|
CCDAmount |
getAvailableBalance()
The available (unencrypted) balance of the account (i.e.
|
Baker |
getBakerInfo()
If the account is registered as a baker, then this will be not null
containing
Baker information. |
com.google.common.collect.ImmutableList<Cooldown> |
getCooldowns()
The stake on the account that is in cooldown.
|
AccountDelegation |
getDelegation()
If the account is delegating then this is non-null.
|
Nonce |
getNonce()
The current nonce for the account.
|
int |
hashCode() |
boolean |
isBaker() |
String |
toString() |
public boolean isBaker()
public static AccountInfo.AccountInfoBuilder builder()
public AccountAddress getAccountAddress()
public Nonce getNonce()
public CCDAmount getAccountAmount()
public CCDAmount getAvailableBalance()
accountAmount
)
minus the locked amount.
The locked amount is the maximum of the amount in the release schedule (accountReleaseSchedule
)
and the total amount that is actively staked or in cooldown (inactive stake, cooldowns
).
This was introduced in node version 7.0.public int getAccountThreshold()
Note. the account threshold is a positive number t <= n, where n is
the number of credentials associated with the account.
See accountCredentials
public ElgamalPublicKey getAccountEncryptionKey()
public AccountIndex getAccountIndex()
public Baker getBakerInfo()
Baker
information.public AccountEncryptedAmount getAccountEncryptedAmount()
AccountEncryptedAmount
associated.public ReleaseSchedule getAccountReleaseSchedule()
ReleaseSchedule
public com.google.common.collect.ImmutableMap<Index,Credential> getAccountCredentials()
public AccountDelegation getDelegation()
public com.google.common.collect.ImmutableList<Cooldown> getCooldowns()
Copyright © 2025. All rights reserved.