public final class Account
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Account.AccountAsset |
static class |
Account.AccountCurrency |
static class |
Account.AccountInfo |
static class |
Account.AccountLease |
static class |
Account.AccountProperty |
static class |
Account.ControlType |
static class |
Account.Event |
static class |
Account.PublicKey |
Modifier and Type | Field and Description |
---|---|
static StringRw |
PROPERTY_NAME_RW |
static StringRw |
PROPERTY_VALUE_RW |
Modifier and Type | Method and Description |
---|---|
static boolean |
addAssetListener(Listener<Account.AccountAsset> listener,
Account.Event eventType) |
static boolean |
addCurrencyListener(Listener<Account.AccountCurrency> listener,
Account.Event eventType) |
static boolean |
addLeaseListener(Listener<Account.AccountLease> listener,
Account.Event eventType) |
static Account |
addOrGetAccount(long id) |
static boolean |
addPropertyListener(Listener<Account.AccountProperty> listener,
Account.Event eventType) |
void |
addToAssetAndUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long assetId,
long quantityQNT) |
void |
addToAssetBalanceQNT(AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long assetId,
long quantityQNT) |
void |
addToBalance(Chain chain,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long amount) |
void |
addToBalance(Chain chain,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long amount,
long fee) |
void |
addToBalanceAndUnconfirmedBalance(Chain chain,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long amount) |
void |
addToBalanceAndUnconfirmedBalance(Chain chain,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long amount,
long fee) |
void |
addToCurrencyAndUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long currencyId,
long units) |
void |
addToCurrencyUnits(AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long currencyId,
long units) |
void |
addToForgedBalanceFQT(long amount) |
void |
addToUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long assetId,
long quantityQNT) |
void |
addToUnconfirmedBalance(Chain chain,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long amount) |
void |
addToUnconfirmedBalance(Chain chain,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long amount,
long fee) |
void |
addToUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long currencyId,
long units) |
void |
apply(byte[] key) |
static byte[] |
decryptFrom(byte[] privateKey,
byte[] publicKey,
EncryptedData encryptedData,
boolean uncompress) |
byte[] |
decryptFrom(byte[] privateKey,
EncryptedData encryptedData,
boolean uncompress) |
void |
deleteProperty(long propertyId) |
EncryptedData |
encryptTo(byte[] privateKey,
byte[] data,
boolean compress) |
static EncryptedData |
encryptTo(byte[] privateKey,
byte[] publicKey,
byte[] data,
boolean compress) |
static Account |
getAccount(byte[] publicKey) |
static Account |
getAccount(long id) |
static Account |
getAccount(long id,
int height) |
static Account.AccountAsset |
getAccountAsset(long accountId,
long assetId) |
static Account.AccountAsset |
getAccountAsset(long accountId,
long assetId,
int height) |
static int |
getAccountAssetCount(long accountId) |
static int |
getAccountAssetCount(long accountId,
int height) |
static DbIterator<Account.AccountAsset> |
getAccountAssets(long accountId,
int from,
int to) |
static DbIterator<Account.AccountAsset> |
getAccountAssets(long accountId,
int height,
int from,
int to) |
static DbIterator<Account.AccountCurrency> |
getAccountCurrencies(long accountId,
int from,
int to) |
static DbIterator<Account.AccountCurrency> |
getAccountCurrencies(long accountId,
int height,
int from,
int to) |
static Account.AccountCurrency |
getAccountCurrency(long accountId,
long currencyId) |
static Account.AccountCurrency |
getAccountCurrency(long accountId,
long currencyId,
int height) |
static int |
getAccountCurrencyCount(long accountId) |
static int |
getAccountCurrencyCount(long accountId,
int height) |
Account.AccountInfo |
getAccountInfo() |
Account.AccountLease |
getAccountLease() |
static int |
getAccountLeaseCount() |
static int |
getActiveLeaseCount() |
Account.AccountAsset |
getAsset(long assetId) |
Account.AccountAsset |
getAsset(long assetId,
int height) |
static int |
getAssetAccountCount(long assetId) |
static int |
getAssetAccountCount(long assetId,
int height) |
static DbIterator<Account.AccountAsset> |
getAssetAccounts(long assetId,
int from,
int to) |
static DbIterator<Account.AccountAsset> |
getAssetAccounts(long assetId,
int height,
int from,
int to) |
long |
getAssetBalanceQNT(long assetId) |
long |
getAssetBalanceQNT(long assetId,
int height) |
static long |
getAssetBalanceQNT(long accountId,
long assetId) |
static long |
getAssetBalanceQNT(long accountId,
long assetId,
int height) |
DbIterator<Account.AccountAsset> |
getAssets(int from,
int to) |
DbIterator<Account.AccountAsset> |
getAssets(int height,
int from,
int to) |
DbIterator<AssetTransfer> |
getAssetTransfers(int from,
int to) |
java.util.Set<Account.ControlType> |
getControls() |
static int |
getCount() |
DbIterator<Account.AccountCurrency> |
getCurrencies(int from,
int to) |
DbIterator<Account.AccountCurrency> |
getCurrencies(int height,
int from,
int to) |
Account.AccountCurrency |
getCurrency(long currencyId) |
Account.AccountCurrency |
getCurrency(long currencyId,
int height) |
static int |
getCurrencyAccountCount(long currencyId) |
static int |
getCurrencyAccountCount(long currencyId,
int height) |
static DbIterator<Account.AccountCurrency> |
getCurrencyAccounts(long currencyId,
int from,
int to) |
static DbIterator<Account.AccountCurrency> |
getCurrencyAccounts(long currencyId,
int height,
int from,
int to) |
DbIterator<CurrencyTransfer> |
getCurrencyTransfers(int from,
int to) |
long |
getCurrencyUnits(long currencyId) |
long |
getCurrencyUnits(long currencyId,
int height) |
static long |
getCurrencyUnits(long accountId,
long currencyId) |
static long |
getCurrencyUnits(long accountId,
long currencyId,
int height) |
long |
getEffectiveBalanceFXT() |
long |
getEffectiveBalanceFXT(int height) |
DbIterator<ExchangeHome.Exchange> |
getExchanges(ChildChain childChain,
int from,
int to) |
long |
getForgedBalanceFQT() |
long |
getGuaranteedBalanceFQT() |
long |
getGuaranteedBalanceFQT(int numberOfConfirmations,
int currentHeight) |
long |
getId() |
static long |
getId(byte[] publicKey) |
DbIterator<Account> |
getLessors() |
DbIterator<Account> |
getLessors(int height) |
static DbIterator<Account.AccountProperty> |
getProperties(long recipientId,
long setterId,
java.lang.String property,
int from,
int to) |
static Account.AccountProperty |
getProperty(long propertyId) |
static Account.AccountProperty |
getProperty(long recipientId,
java.lang.String property) |
static Account.AccountProperty |
getProperty(long recipientId,
java.lang.String property,
long setterId) |
static byte[] |
getPublicKey(long id) |
DbIterator<TradeHome.Trade> |
getTrades(ChildChain childChain,
int from,
int to) |
long |
getUnconfirmedAssetBalanceQNT(long assetId) |
static long |
getUnconfirmedAssetBalanceQNT(long accountId,
long assetId) |
long |
getUnconfirmedCurrencyUnits(long currencyId) |
static long |
getUnconfirmedCurrencyUnits(long accountId,
long currencyId) |
static boolean |
hasAccount(long id,
int height) |
static void |
importProperty(long propertyId,
long recipientId,
long setterId,
java.lang.String property,
java.lang.String value) |
static void |
init() |
void |
leaseEffectiveBalance(long lesseeId,
int period) |
static boolean |
removeAssetListener(Listener<Account.AccountAsset> listener,
Account.Event eventType) |
static boolean |
removeCurrencyListener(Listener<Account.AccountCurrency> listener,
Account.Event eventType) |
static boolean |
removeLeaseListener(Listener<Account.AccountLease> listener,
Account.Event eventType) |
static boolean |
removePropertyListener(Listener<Account.AccountProperty> listener,
Account.Event eventType) |
static DbIterator<Account.AccountInfo> |
searchAccounts(java.lang.String query,
int from,
int to) |
void |
setAccountInfo(java.lang.String name,
java.lang.String description) |
static boolean |
setOrVerify(long accountId,
byte[] key) |
void |
setProperty(Transaction transaction,
Account setterAccount,
java.lang.String property,
java.lang.String value) |
java.lang.String |
toString() |
public static final StringRw PROPERTY_NAME_RW
public static final StringRw PROPERTY_VALUE_RW
public static boolean addAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType)
public static boolean removeAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType)
public static boolean addCurrencyListener(Listener<Account.AccountCurrency> listener, Account.Event eventType)
public static boolean removeCurrencyListener(Listener<Account.AccountCurrency> listener, Account.Event eventType)
public static boolean addLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType)
public static boolean removeLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType)
public static boolean addPropertyListener(Listener<Account.AccountProperty> listener, Account.Event eventType)
public static boolean removePropertyListener(Listener<Account.AccountProperty> listener, Account.Event eventType)
public static int getCount()
public static int getAssetAccountCount(long assetId)
public static int getAssetAccountCount(long assetId, int height)
public static int getAccountAssetCount(long accountId)
public static int getAccountAssetCount(long accountId, int height)
public static int getCurrencyAccountCount(long currencyId)
public static int getCurrencyAccountCount(long currencyId, int height)
public static int getAccountCurrencyCount(long accountId)
public static int getAccountCurrencyCount(long accountId, int height)
public static int getAccountLeaseCount()
public static int getActiveLeaseCount()
public static Account.AccountProperty getProperty(long propertyId)
public static DbIterator<Account.AccountProperty> getProperties(long recipientId, long setterId, java.lang.String property, int from, int to)
public static Account.AccountProperty getProperty(long recipientId, java.lang.String property)
public static Account.AccountProperty getProperty(long recipientId, java.lang.String property, long setterId)
public static Account getAccount(long id)
public static Account getAccount(long id, int height)
public static boolean hasAccount(long id, int height)
public static Account getAccount(byte[] publicKey)
public static long getId(byte[] publicKey)
public static byte[] getPublicKey(long id)
public static Account addOrGetAccount(long id)
public static DbIterator<Account.AccountAsset> getAccountAssets(long accountId, int from, int to)
public static DbIterator<Account.AccountAsset> getAccountAssets(long accountId, int height, int from, int to)
public static Account.AccountAsset getAccountAsset(long accountId, long assetId)
public static Account.AccountAsset getAccountAsset(long accountId, long assetId, int height)
public static DbIterator<Account.AccountAsset> getAssetAccounts(long assetId, int from, int to)
public static DbIterator<Account.AccountAsset> getAssetAccounts(long assetId, int height, int from, int to)
public static Account.AccountCurrency getAccountCurrency(long accountId, long currencyId)
public static Account.AccountCurrency getAccountCurrency(long accountId, long currencyId, int height)
public static DbIterator<Account.AccountCurrency> getAccountCurrencies(long accountId, int from, int to)
public static DbIterator<Account.AccountCurrency> getAccountCurrencies(long accountId, int height, int from, int to)
public static DbIterator<Account.AccountCurrency> getCurrencyAccounts(long currencyId, int from, int to)
public static DbIterator<Account.AccountCurrency> getCurrencyAccounts(long currencyId, int height, int from, int to)
public static long getAssetBalanceQNT(long accountId, long assetId, int height)
public static long getAssetBalanceQNT(long accountId, long assetId)
public static long getUnconfirmedAssetBalanceQNT(long accountId, long assetId)
public static long getCurrencyUnits(long accountId, long currencyId, int height)
public static long getCurrencyUnits(long accountId, long currencyId)
public static long getUnconfirmedCurrencyUnits(long accountId, long currencyId)
public static DbIterator<Account.AccountInfo> searchAccounts(java.lang.String query, int from, int to)
public static void init()
public long getId()
public Account.AccountInfo getAccountInfo()
public void setAccountInfo(java.lang.String name, java.lang.String description)
public Account.AccountLease getAccountLease()
public EncryptedData encryptTo(byte[] privateKey, byte[] data, boolean compress)
public static EncryptedData encryptTo(byte[] privateKey, byte[] publicKey, byte[] data, boolean compress)
public byte[] decryptFrom(byte[] privateKey, EncryptedData encryptedData, boolean uncompress)
public static byte[] decryptFrom(byte[] privateKey, byte[] publicKey, EncryptedData encryptedData, boolean uncompress)
public long getForgedBalanceFQT()
public long getEffectiveBalanceFXT()
public long getEffectiveBalanceFXT(int height)
public DbIterator<Account> getLessors()
public DbIterator<Account> getLessors(int height)
public long getGuaranteedBalanceFQT()
public long getGuaranteedBalanceFQT(int numberOfConfirmations, int currentHeight)
public DbIterator<Account.AccountAsset> getAssets(int from, int to)
public DbIterator<Account.AccountAsset> getAssets(int height, int from, int to)
public DbIterator<TradeHome.Trade> getTrades(ChildChain childChain, int from, int to)
public DbIterator<AssetTransfer> getAssetTransfers(int from, int to)
public DbIterator<CurrencyTransfer> getCurrencyTransfers(int from, int to)
public DbIterator<ExchangeHome.Exchange> getExchanges(ChildChain childChain, int from, int to)
public Account.AccountAsset getAsset(long assetId)
public Account.AccountAsset getAsset(long assetId, int height)
public long getAssetBalanceQNT(long assetId)
public long getAssetBalanceQNT(long assetId, int height)
public long getUnconfirmedAssetBalanceQNT(long assetId)
public Account.AccountCurrency getCurrency(long currencyId)
public Account.AccountCurrency getCurrency(long currencyId, int height)
public DbIterator<Account.AccountCurrency> getCurrencies(int from, int to)
public DbIterator<Account.AccountCurrency> getCurrencies(int height, int from, int to)
public long getCurrencyUnits(long currencyId)
public long getCurrencyUnits(long currencyId, int height)
public long getUnconfirmedCurrencyUnits(long currencyId)
public java.util.Set<Account.ControlType> getControls()
public void leaseEffectiveBalance(long lesseeId, int period)
public void setProperty(Transaction transaction, Account setterAccount, java.lang.String property, java.lang.String value)
public static void importProperty(long propertyId, long recipientId, long setterId, java.lang.String property, java.lang.String value)
public void deleteProperty(long propertyId)
public static boolean setOrVerify(long accountId, byte[] key)
public void apply(byte[] key)
public void addToAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT)
public void addToUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT)
public void addToAssetAndUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT)
public void addToCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units)
public void addToUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units)
public void addToCurrencyAndUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units)
public void addToBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee)
public void addToUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee)
public void addToBalanceAndUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee)
public void addToBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount)
public void addToUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount)
public void addToBalanceAndUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount)
public void addToForgedBalanceFQT(long amount)
public java.lang.String toString()
toString
in class java.lang.Object