Package nxt.account

Class Account

java.lang.Object
nxt.account.Account

public final class Account extends Object
  • Field Details

    • PROPERTY_NAME_RW

      public static final StringRw PROPERTY_NAME_RW
    • PROPERTY_VALUE_RW

      public static final StringRw 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

      public static Account.AccountProperty getProperty(long propertyId)
    • getProperties

      public static DbIterator<Account.AccountProperty> getProperties(long recipientId, long setterId, String property, int from, int to)
    • getProperty

      public static Account.AccountProperty getProperty(long recipientId, String property)
    • getProperty

      public static Account.AccountProperty getProperty(long recipientId, String property, long setterId)
    • getAccount

      public static Account getAccount(long id)
    • getAccount

      public static Account getAccount(long id, int height)
    • hasAccount

      public static boolean hasAccount(long id, int height)
    • getAccount

      public static Account getAccount(byte[] publicKey)
    • getId

      public static long getId(byte[] publicKey)
    • getPublicKey

      public static byte[] getPublicKey(long id)
    • addOrGetAccount

      public static Account addOrGetAccount(long id)
    • getAccountAssets

      public static DbIterator<Account.AccountAsset> getAccountAssets(long accountId, int from, int to)
    • getAccountAssets

      public static DbIterator<Account.AccountAsset> getAccountAssets(long accountId, int height, int from, int to)
    • getAccountAsset

      public static Account.AccountAsset getAccountAsset(long accountId, long assetId)
    • getAccountAsset

      public static Account.AccountAsset getAccountAsset(long accountId, long assetId, int height)
    • getAssetAccounts

      public static DbIterator<Account.AccountAsset> getAssetAccounts(long assetId, int from, int to)
    • getAssetAccounts

      public static DbIterator<Account.AccountAsset> getAssetAccounts(long assetId, int height, int from, int to)
    • getAccountCurrency

      public static Account.AccountCurrency getAccountCurrency(long accountId, long currencyId)
    • 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

      public static DbIterator<Account.AccountInfo> searchAccounts(String query, int from, int to)
    • init

      public static void init()
    • getId

      public long getId()
    • getAccountInfo

      public Account.AccountInfo getAccountInfo()
    • setAccountInfo

      public void setAccountInfo(String name, String description)
    • getAccountLease

      public Account.AccountLease getAccountLease()
    • encryptTo

      public EncryptedData encryptTo(byte[] privateKey, byte[] data, boolean compress)
    • encryptTo

      public static EncryptedData encryptTo(byte[] privateKey, byte[] publicKey, byte[] data, boolean compress)
    • decryptFrom

      public byte[] decryptFrom(byte[] privateKey, EncryptedData encryptedData, boolean uncompress)
    • 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

      public DbIterator<Account> getLessors()
    • getLessors

      public DbIterator<Account> getLessors(int height)
    • getGuaranteedBalanceFQT

      public long getGuaranteedBalanceFQT()
    • getGuaranteedBalanceFQT

      public long getGuaranteedBalanceFQT(int numberOfConfirmations, int currentHeight)
    • getAssets

      public DbIterator<Account.AccountAsset> getAssets(int from, int to)
    • getAssets

      public DbIterator<Account.AccountAsset> getAssets(int height, int from, int to)
    • getTrades

      public DbIterator<TradeHome.Trade> getTrades(ChildChain childChain, int from, int to)
    • getAssetTransfers

      public DbIterator<AssetTransfer> getAssetTransfers(int from, int to)
    • getCurrencyTransfers

      public DbIterator<CurrencyTransfer> getCurrencyTransfers(int from, int to)
    • getExchanges

      public DbIterator<ExchangeHome.Exchange> getExchanges(ChildChain childChain, int from, int to)
    • getAsset

      public Account.AccountAsset getAsset(long assetId)
    • getAsset

      public Account.AccountAsset getAsset(long assetId, int height)
    • getAssetBalanceQNT

      public long getAssetBalanceQNT(long assetId)
    • getAssetBalanceQNT

      public long getAssetBalanceQNT(long assetId, int height)
    • getUnconfirmedAssetBalanceQNT

      public long getUnconfirmedAssetBalanceQNT(long assetId)
    • getCurrency

      public Account.AccountCurrency getCurrency(long currencyId)
    • getCurrency

      public Account.AccountCurrency getCurrency(long currencyId, int height)
    • getCurrencies

      public DbIterator<Account.AccountCurrency> getCurrencies(int from, int to)
    • getCurrencies

      public DbIterator<Account.AccountCurrency> getCurrencies(int height, int from, int to)
    • getCurrencyUnits

      public long getCurrencyUnits(long currencyId)
    • getCurrencyUnits

      public long getCurrencyUnits(long currencyId, int height)
    • getUnconfirmedCurrencyUnits

      public long getUnconfirmedCurrencyUnits(long currencyId)
    • getControls

      public Set<Account.ControlType> getControls()
    • leaseEffectiveBalance

      public void leaseEffectiveBalance(long lesseeId, int period)
    • setProperty

      public void setProperty(Transaction transaction, Account setterAccount, String property, String value)
    • importProperty

      public static void importProperty(long propertyId, long recipientId, long setterId, String property, String value)
    • 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

      public String toString()
      Overrides:
      toString in class Object