Package nxt.account
Class Account
java.lang.Object
nxt.account.Account
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic enumstatic enumstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType) static booleanaddCurrencyListener(Listener<Account.AccountCurrency> listener, Account.Event eventType) static booleanaddLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType) static AccountaddOrGetAccount(long id) static booleanaddPropertyListener(Listener<Account.AccountProperty> listener, Account.Event eventType) voidaddToAssetAndUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT) voidaddToAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT) voidaddToBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount) voidaddToBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee) voidaddToBalanceAndUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount) voidaddToBalanceAndUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee) voidaddToCurrencyAndUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units) voidaddToCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units) voidaddToForgedBalanceFQT(long amount) voidaddToUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT) voidaddToUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount) voidaddToUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee) voidaddToUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units) voidapply(byte[] key) static byte[]decryptFrom(byte[] privateKey, byte[] publicKey, EncryptedData encryptedData, boolean uncompress) byte[]decryptFrom(byte[] privateKey, EncryptedData encryptedData, boolean uncompress) voiddeleteProperty(long propertyId) encryptTo(byte[] privateKey, byte[] data, boolean compress) static EncryptedDataencryptTo(byte[] privateKey, byte[] publicKey, byte[] data, boolean compress) static AccountgetAccount(byte[] publicKey) static AccountgetAccount(long id) static AccountgetAccount(long id, int height) static Account.AccountAssetgetAccountAsset(long accountId, long assetId) static Account.AccountAssetgetAccountAsset(long accountId, long assetId, int height) static intgetAccountAssetCount(long accountId) static intgetAccountAssetCount(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.AccountCurrencygetAccountCurrency(long accountId, long currencyId) static Account.AccountCurrencygetAccountCurrency(long accountId, long currencyId, int height) static intgetAccountCurrencyCount(long accountId) static intgetAccountCurrencyCount(long accountId, int height) static intstatic intgetAsset(long assetId) getAsset(long assetId, int height) static intgetAssetAccountCount(long assetId) static intgetAssetAccountCount(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) longgetAssetBalanceQNT(long assetId) longgetAssetBalanceQNT(long assetId, int height) static longgetAssetBalanceQNT(long accountId, long assetId) static longgetAssetBalanceQNT(long accountId, long assetId, int height) getAssets(int from, int to) getAssets(int height, int from, int to) getAssetTransfers(int from, int to) static intgetCount()getCurrencies(int from, int to) getCurrencies(int height, int from, int to) getCurrency(long currencyId) getCurrency(long currencyId, int height) static intgetCurrencyAccountCount(long currencyId) static intgetCurrencyAccountCount(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) getCurrencyTransfers(int from, int to) longgetCurrencyUnits(long currencyId) longgetCurrencyUnits(long currencyId, int height) static longgetCurrencyUnits(long accountId, long currencyId) static longgetCurrencyUnits(long accountId, long currencyId, int height) longlonggetEffectiveBalanceFXT(int height) getExchanges(ChildChain childChain, int from, int to) longlonglonggetGuaranteedBalanceFQT(int numberOfConfirmations, int currentHeight) longgetId()static longgetId(byte[] publicKey) getLessors(int height) static DbIterator<Account.AccountProperty>getProperties(long recipientId, long setterId, String property, int from, int to) static Account.AccountPropertygetProperty(long propertyId) static Account.AccountPropertygetProperty(long recipientId, String property) static Account.AccountPropertygetProperty(long recipientId, String property, long setterId) static byte[]getPublicKey(long id) getTrades(ChildChain childChain, int from, int to) longgetUnconfirmedAssetBalanceQNT(long assetId) static longgetUnconfirmedAssetBalanceQNT(long accountId, long assetId) longgetUnconfirmedCurrencyUnits(long currencyId) static longgetUnconfirmedCurrencyUnits(long accountId, long currencyId) static booleanhasAccount(long id, int height) static voidimportProperty(long propertyId, long recipientId, long setterId, String property, String value) static voidinit()voidleaseEffectiveBalance(long lesseeId, int period) static booleanremoveAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType) static booleanremoveCurrencyListener(Listener<Account.AccountCurrency> listener, Account.Event eventType) static booleanremoveLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType) static booleanremovePropertyListener(Listener<Account.AccountProperty> listener, Account.Event eventType) static DbIterator<Account.AccountInfo>searchAccounts(String query, int from, int to) voidsetAccountInfo(String name, String description) static booleansetOrVerify(long accountId, byte[] key) voidsetProperty(Transaction transaction, Account setterAccount, String property, String value) toString()
-
Field Details
-
PROPERTY_NAME_RW
-
PROPERTY_VALUE_RW
-
-
Method Details
-
addAssetListener
public static boolean addAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType) -
removeAssetListener
public static boolean removeAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType) -
addCurrencyListener
public static boolean addCurrencyListener(Listener<Account.AccountCurrency> listener, Account.Event eventType) -
removeCurrencyListener
public static boolean removeCurrencyListener(Listener<Account.AccountCurrency> listener, Account.Event eventType) -
addLeaseListener
public static boolean addLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType) -
removeLeaseListener
public static boolean removeLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType) -
addPropertyListener
public static boolean addPropertyListener(Listener<Account.AccountProperty> listener, Account.Event eventType) -
removePropertyListener
public static boolean removePropertyListener(Listener<Account.AccountProperty> listener, Account.Event eventType) -
getCount
public static int getCount() -
getAssetAccountCount
public static int getAssetAccountCount(long assetId) -
getAssetAccountCount
public static int getAssetAccountCount(long assetId, int height) -
getAccountAssetCount
public static int getAccountAssetCount(long accountId) -
getAccountAssetCount
public static int getAccountAssetCount(long accountId, int height) -
getCurrencyAccountCount
public static int getCurrencyAccountCount(long currencyId) -
getCurrencyAccountCount
public static int getCurrencyAccountCount(long currencyId, int height) -
getAccountCurrencyCount
public static int getAccountCurrencyCount(long accountId) -
getAccountCurrencyCount
public static int getAccountCurrencyCount(long accountId, int height) -
getAccountLeaseCount
public static int getAccountLeaseCount() -
getActiveLeaseCount
public static int getActiveLeaseCount() -
getProperty
-
getProperties
public static DbIterator<Account.AccountProperty> getProperties(long recipientId, long setterId, String property, int from, int to) -
getProperty
-
getProperty
-
getAccount
-
getAccount
-
hasAccount
public static boolean hasAccount(long id, int height) -
getAccount
-
getId
public static long getId(byte[] publicKey) -
getPublicKey
public static byte[] getPublicKey(long id) -
addOrGetAccount
-
getAccountAssets
-
getAccountAssets
public static DbIterator<Account.AccountAsset> getAccountAssets(long accountId, int height, int from, int to) -
getAccountAsset
-
getAccountAsset
-
getAssetAccounts
-
getAssetAccounts
public static DbIterator<Account.AccountAsset> getAssetAccounts(long assetId, int height, int from, int to) -
getAccountCurrency
-
getAccountCurrency
public static Account.AccountCurrency getAccountCurrency(long accountId, long currencyId, int height) -
getAccountCurrencies
public static DbIterator<Account.AccountCurrency> getAccountCurrencies(long accountId, int from, int to) -
getAccountCurrencies
public static DbIterator<Account.AccountCurrency> getAccountCurrencies(long accountId, int height, int from, int to) -
getCurrencyAccounts
public static DbIterator<Account.AccountCurrency> getCurrencyAccounts(long currencyId, int from, int to) -
getCurrencyAccounts
public static DbIterator<Account.AccountCurrency> getCurrencyAccounts(long currencyId, int height, int from, int to) -
getAssetBalanceQNT
public static long getAssetBalanceQNT(long accountId, long assetId, int height) -
getAssetBalanceQNT
public static long getAssetBalanceQNT(long accountId, long assetId) -
getUnconfirmedAssetBalanceQNT
public static long getUnconfirmedAssetBalanceQNT(long accountId, long assetId) -
getCurrencyUnits
public static long getCurrencyUnits(long accountId, long currencyId, int height) -
getCurrencyUnits
public static long getCurrencyUnits(long accountId, long currencyId) -
getUnconfirmedCurrencyUnits
public static long getUnconfirmedCurrencyUnits(long accountId, long currencyId) -
searchAccounts
-
init
public static void init() -
getId
public long getId() -
getAccountInfo
-
setAccountInfo
-
getAccountLease
-
encryptTo
-
encryptTo
public static EncryptedData encryptTo(byte[] privateKey, byte[] publicKey, byte[] data, boolean compress) -
decryptFrom
-
decryptFrom
public static byte[] decryptFrom(byte[] privateKey, byte[] publicKey, EncryptedData encryptedData, boolean uncompress) -
getForgedBalanceFQT
public long getForgedBalanceFQT() -
getEffectiveBalanceFXT
public long getEffectiveBalanceFXT() -
getEffectiveBalanceFXT
public long getEffectiveBalanceFXT(int height) -
getLessors
-
getLessors
-
getGuaranteedBalanceFQT
public long getGuaranteedBalanceFQT() -
getGuaranteedBalanceFQT
public long getGuaranteedBalanceFQT(int numberOfConfirmations, int currentHeight) -
getAssets
-
getAssets
-
getTrades
-
getAssetTransfers
-
getCurrencyTransfers
-
getExchanges
-
getAsset
-
getAsset
-
getAssetBalanceQNT
public long getAssetBalanceQNT(long assetId) -
getAssetBalanceQNT
public long getAssetBalanceQNT(long assetId, int height) -
getUnconfirmedAssetBalanceQNT
public long getUnconfirmedAssetBalanceQNT(long assetId) -
getCurrency
-
getCurrency
-
getCurrencies
-
getCurrencies
-
getCurrencyUnits
public long getCurrencyUnits(long currencyId) -
getCurrencyUnits
public long getCurrencyUnits(long currencyId, int height) -
getUnconfirmedCurrencyUnits
public long getUnconfirmedCurrencyUnits(long currencyId) -
getControls
-
leaseEffectiveBalance
public void leaseEffectiveBalance(long lesseeId, int period) -
setProperty
public void setProperty(Transaction transaction, Account setterAccount, String property, String value) -
importProperty
-
deleteProperty
public void deleteProperty(long propertyId) -
setOrVerify
public static boolean setOrVerify(long accountId, byte[] key) -
apply
public void apply(byte[] key) -
addToAssetBalanceQNT
public void addToAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT) -
addToUnconfirmedAssetBalanceQNT
public void addToUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT) -
addToAssetAndUnconfirmedAssetBalanceQNT
public void addToAssetAndUnconfirmedAssetBalanceQNT(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long assetId, long quantityQNT) -
addToCurrencyUnits
public void addToCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units) -
addToUnconfirmedCurrencyUnits
public void addToUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units) -
addToCurrencyAndUnconfirmedCurrencyUnits
public void addToCurrencyAndUnconfirmedCurrencyUnits(AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long currencyId, long units) -
addToBalance
public void addToBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee) -
addToUnconfirmedBalance
public void addToUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee) -
addToBalanceAndUnconfirmedBalance
public void addToBalanceAndUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount, long fee) -
addToBalance
public void addToBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount) -
addToUnconfirmedBalance
public void addToUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount) -
addToBalanceAndUnconfirmedBalance
public void addToBalanceAndUnconfirmedBalance(Chain chain, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long amount) -
addToForgedBalanceFQT
public void addToForgedBalanceFQT(long amount) -
toString
-