Package nxt

Interface Blockchain


  • public interface Blockchain
    • Method Detail

      • readLock

        void readLock()
      • readUnlock

        void readUnlock()
      • updateLock

        void updateLock()
      • updateUnlock

        void updateUnlock()
      • getLastBlock

        Block getLastBlock()
      • getLastBlock

        Block getLastBlock​(int timestamp)
      • getHeight

        int getHeight()
      • getLastBlockTimestamp

        int getLastBlockTimestamp()
      • getBlock

        Block getBlock​(long blockId)
      • getBlockAtHeight

        Block getBlockAtHeight​(int height)
      • hasBlock

        boolean hasBlock​(long blockId)
      • getBlocks

        DbIterator<? extends Block> getBlocks​(long accountId,
                                              int timestamp)
      • getBlocks

        DbIterator<? extends Block> getBlocks​(long accountId,
                                              int timestamp,
                                              int from,
                                              int to)
      • getBlockCount

        int getBlockCount​(long accountId)
      • getBlocks

        DbIterator<? extends Block> getBlocks​(java.sql.Connection con,
                                              java.sql.PreparedStatement pstmt)
      • getBlockIdsAfter

        java.util.List<java.lang.Long> getBlockIdsAfter​(long blockId,
                                                        int limit)
      • getBlocksAfter

        java.util.List<? extends Block> getBlocksAfter​(long blockId,
                                                       int limit)
      • getBlocksAfter

        java.util.List<? extends Block> getBlocksAfter​(long blockId,
                                                       java.util.List<java.lang.Long> blockList)
      • getBlockIdAtHeight

        long getBlockIdAtHeight​(int height)
      • getECBlock

        Block getECBlock​(int timestamp)
      • getTransaction

        Transaction getTransaction​(long transactionId)
      • getTransactionByFullHash

        Transaction getTransactionByFullHash​(java.lang.String fullHash)
      • hasTransaction

        boolean hasTransaction​(long transactionId)
      • hasTransactionByFullHash

        boolean hasTransactionByFullHash​(java.lang.String fullHash)
      • getTransactionCount

        int getTransactionCount()
      • getTransactions

        DbIterator<? extends Transaction> getTransactions​(long accountId,
                                                          byte type,
                                                          byte subtype,
                                                          int blockTimestamp,
                                                          boolean includeExpiredPrunable)
      • getTransactions

        DbIterator<? extends Transaction> getTransactions​(long accountId,
                                                          int numberOfConfirmations,
                                                          byte type,
                                                          byte subtype,
                                                          int blockTimestamp,
                                                          boolean withMessage,
                                                          boolean phasedOnly,
                                                          boolean nonPhasedOnly,
                                                          int from,
                                                          int to,
                                                          boolean includeExpiredPrunable,
                                                          boolean executedOnly)
      • getTransactions

        DbIterator<? extends Transaction> getTransactions​(java.sql.Connection con,
                                                          java.sql.PreparedStatement pstmt)
      • getReferencingTransactions

        DbIterator<? extends Transaction> getReferencingTransactions​(long transactionId,
                                                                     int from,
                                                                     int to)