Package nxt
Interface Blockchain
-
public interface Blockchain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DbIterator<? extends Block>getAllBlocks()DbIterator<? extends Transaction>getAllTransactions()BlockgetBlock(long blockId)BlockgetBlockAtHeight(int height)intgetBlockCount(long accountId)longgetBlockIdAtHeight(int height)java.util.List<java.lang.Long>getBlockIdsAfter(long blockId, int limit)DbIterator<? extends Block>getBlocks(int from, int to)DbIterator<? extends Block>getBlocks(long accountId, int timestamp)DbIterator<? extends Block>getBlocks(long accountId, int timestamp, int from, int to)DbIterator<? extends Block>getBlocks(java.sql.Connection con, java.sql.PreparedStatement pstmt)java.util.List<? extends Block>getBlocksAfter(long blockId, int limit)java.util.List<? extends Block>getBlocksAfter(long blockId, java.util.List<java.lang.Long> blockList)BlockgetECBlock(int timestamp)java.util.List<? extends Transaction>getExpectedTransactions(Filter<Transaction> filter)intgetHeight()BlockgetLastBlock()BlockgetLastBlock(int timestamp)intgetLastBlockTimestamp()DbIterator<? extends Transaction>getReferencingTransactions(long transactionId, int from, int to)TransactiongetTransaction(long transactionId)TransactiongetTransactionByFullHash(java.lang.String fullHash)intgetTransactionCount()DbIterator<? extends Transaction>getTransactions(long accountId, byte type, byte subtype, int blockTimestamp, boolean includeExpiredPrunable)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)DbIterator<? extends Transaction>getTransactions(java.sql.Connection con, java.sql.PreparedStatement pstmt)booleanhasBlock(long blockId)booleanhasTransaction(long transactionId)booleanhasTransactionByFullHash(java.lang.String fullHash)voidreadLock()voidreadUnlock()voidupdateLock()voidupdateUnlock()
-
-
-
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)
-
getAllBlocks
DbIterator<? extends Block> getAllBlocks()
-
getBlocks
DbIterator<? extends Block> getBlocks(int from, int to)
-
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()
-
getAllTransactions
DbIterator<? extends Transaction> getAllTransactions()
-
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)
-
getExpectedTransactions
java.util.List<? extends Transaction> getExpectedTransactions(Filter<Transaction> filter)
-
getReferencingTransactions
DbIterator<? extends Transaction> getReferencingTransactions(long transactionId, int from, int to)
-
-