Package nxt.blockchain
Interface Blockchain
- All Known Implementing Classes:
BlockchainImpl
public interface Blockchain
-
Method Summary
Modifier and TypeMethodDescriptionDbIterator<? extends Block>getBlock(long blockId) getBlock(long blockId, boolean loadTransactions) getBlockAtHeight(int height) intgetBlockCount(long accountId) longgetBlockIdAtHeight(int height) 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(Connection con, PreparedStatement pstmt) getBlocksAfter(long blockId, int limit) getBlocksAfter(long blockId, List<Long> blockList) getECBlock(int timestamp) DbIterator<? extends Transaction>getExecutedTransactions(Chain chain, long senderId, long recipientId, byte type, byte subtype, int height, int numberOfConfirmations, int from, int to) List<? extends Transaction>getExpectedTransactions(Filter<Transaction> filter) getFxtTransaction(long transactionId) intgetLastBlock(int timestamp) intDbIterator<? extends ChildTransaction>getReferencingTransactions(ChildChain chain, byte[] referencedTransactionFullHash, int from, int to) getTransaction(Chain chain, byte[] fullHash) intgetTransactionCount(Chain chain) DbIterator<? extends ChildTransaction>getTransactions(ChildChain chain, long accountId, byte type, byte subtype, int blockTimestamp, boolean includeExpiredPrunable) DbIterator<? extends ChildTransaction>getTransactions(ChildChain chain, 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 ChildTransaction>getTransactions(ChildChain childChain, Connection con, PreparedStatement pstmt) DbIterator<? extends FxtTransaction>getTransactions(FxtChain chain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, int from, int to) DbIterator<? extends FxtTransaction>getTransactions(FxtChain chain, Connection con, PreparedStatement pstmt) booleanhasBlock(long blockId) booleanhasFxtTransaction(long transactionId) booleanhasTransaction(Chain chain, byte[] fullHash) voidreadLock()voidvoidvoid
-
Method Details
-
readLock
void readLock() -
readUnlock
void readUnlock() -
updateLock
void updateLock() -
updateUnlock
void updateUnlock() -
getLastBlock
Block getLastBlock() -
getLastBlock
-
getHeight
int getHeight() -
getLastBlockTimestamp
int getLastBlockTimestamp() -
getBlock
-
getBlock
-
getBlockAtHeight
-
hasBlock
boolean hasBlock(long blockId) -
getAllBlocks
DbIterator<? extends Block> getAllBlocks() -
getBlocks
-
getBlocks
-
getBlocks
-
getBlockCount
int getBlockCount(long accountId) -
getBlocks
-
getBlockIdsAfter
-
getBlocksAfter
-
getBlocksAfter
-
getBlockIdAtHeight
long getBlockIdAtHeight(int height) -
getECBlock
-
getTransaction
-
hasTransaction
-
getFxtTransaction
-
hasFxtTransaction
boolean hasFxtTransaction(long transactionId) -
getTransactionCount
-
getTransactions
DbIterator<? extends ChildTransaction> getTransactions(ChildChain chain, long accountId, byte type, byte subtype, int blockTimestamp, boolean includeExpiredPrunable) -
getTransactions
DbIterator<? extends ChildTransaction> getTransactions(ChildChain chain, 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 FxtTransaction> getTransactions(FxtChain chain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, int from, int to) -
getTransactions
DbIterator<? extends FxtTransaction> getTransactions(FxtChain chain, Connection con, PreparedStatement pstmt) -
getTransactions
DbIterator<? extends ChildTransaction> getTransactions(ChildChain childChain, Connection con, PreparedStatement pstmt) -
getExpectedTransactions
-
getReferencingTransactions
DbIterator<? extends ChildTransaction> getReferencingTransactions(ChildChain chain, byte[] referencedTransactionFullHash, int from, int to) -
getExecutedTransactions
DbIterator<? extends Transaction> getExecutedTransactions(Chain chain, long senderId, long recipientId, byte type, byte subtype, int height, int numberOfConfirmations, int from, int to)
-