Package nxt

Class Account


  • public final class Account
    extends java.lang.Object
    • Method Detail

      • 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()
      • getProperties

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

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

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

        public static Account getAccount​(long id)
      • getAccount

        public static Account getAccount​(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)
      • getAccountAsset

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

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

        public static Account.AccountCurrency getAccountCurrency​(long accountId,
                                                                 long currencyId)
      • getAccountCurrency

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

        public long getId()
      • encryptTo

        public EncryptedData encryptTo​(byte[] data,
                                       java.lang.String senderSecretPhrase,
                                       boolean compress)
      • encryptTo

        public static EncryptedData encryptTo​(byte[] publicKey,
                                              byte[] data,
                                              java.lang.String senderSecretPhrase,
                                              boolean compress)
      • decryptFrom

        public byte[] decryptFrom​(EncryptedData encryptedData,
                                  java.lang.String recipientSecretPhrase,
                                  boolean uncompress)
      • decryptFrom

        public static byte[] decryptFrom​(byte[] publicKey,
                                         EncryptedData encryptedData,
                                         java.lang.String recipientSecretPhrase,
                                         boolean uncompress)
      • getBalanceNQT

        public long getBalanceNQT()
      • getUnconfirmedBalanceNQT

        public long getUnconfirmedBalanceNQT()
      • getForgedBalanceNQT

        public long getForgedBalanceNQT()
      • getEffectiveBalanceNXT

        public long getEffectiveBalanceNXT()
      • getEffectiveBalanceNXT

        public long getEffectiveBalanceNXT​(int height)
      • getGuaranteedBalanceNQT

        public long getGuaranteedBalanceNQT()
      • getGuaranteedBalanceNQT

        public long getGuaranteedBalanceNQT​(int numberOfConfirmations,
                                            int currentHeight)
      • getAssetBalanceQNT

        public long getAssetBalanceQNT​(long assetId)
      • getAssetBalanceQNT

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

        public long getUnconfirmedAssetBalanceQNT​(long assetId)
      • getCurrencyUnits

        public long getCurrencyUnits​(long currencyId)
      • getCurrencyUnits

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

        public long getUnconfirmedCurrencyUnits​(long currencyId)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object