public interface Blockchain
Modifier and Type | Method and Description |
---|---|
DbIterator<? extends Block> |
getAllBlocks() |
DbIterator<? extends Transaction> |
getAllTransactions() |
Block |
getBlock(long blockId) |
Block |
getBlockAtHeight(int height) |
int |
getBlockCount(long accountId) |
long |
getBlockIdAtHeight(int height) |
java.util.List<java.lang.Long> |
getBlockIdsAfter(long blockId,
int limit) |
DbIterator<? extends Block> |
getBlocks(java.sql.Connection con,
java.sql.PreparedStatement pstmt) |
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) |
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) |
Block |
getECBlock(int timestamp) |
java.util.List<? extends Transaction> |
getExpectedTransactions(Filter<Transaction> filter) |
int |
getHeight() |
Block |
getLastBlock() |
Block |
getLastBlock(int timestamp) |
int |
getLastBlockTimestamp() |
DbIterator<? extends Transaction> |
getReferencingTransactions(long transactionId,
int from,
int to) |
Transaction |
getTransaction(long transactionId) |
Transaction |
getTransactionByFullHash(java.lang.String fullHash) |
int |
getTransactionCount() |
DbIterator<? extends Transaction> |
getTransactions(java.sql.Connection con,
java.sql.PreparedStatement pstmt) |
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) |
boolean |
hasBlock(long blockId) |
boolean |
hasTransaction(long transactionId) |
boolean |
hasTransactionByFullHash(java.lang.String fullHash) |
void |
readLock() |
void |
readUnlock() |
void |
updateLock() |
void |
updateUnlock() |
void readLock()
void readUnlock()
void updateLock()
void updateUnlock()
Block getLastBlock()
Block getLastBlock(int timestamp)
int getHeight()
int getLastBlockTimestamp()
Block getBlock(long blockId)
Block getBlockAtHeight(int height)
boolean hasBlock(long blockId)
DbIterator<? extends Block> getAllBlocks()
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)
int getBlockCount(long accountId)
DbIterator<? extends Block> getBlocks(java.sql.Connection con, java.sql.PreparedStatement pstmt)
java.util.List<java.lang.Long> getBlockIdsAfter(long blockId, int limit)
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)
long getBlockIdAtHeight(int height)
Block getECBlock(int timestamp)
Transaction getTransaction(long transactionId)
Transaction getTransactionByFullHash(java.lang.String fullHash)
boolean hasTransaction(long transactionId)
boolean hasTransactionByFullHash(java.lang.String fullHash)
int getTransactionCount()
DbIterator<? extends Transaction> getAllTransactions()
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)
java.util.List<? extends Transaction> getExpectedTransactions(Filter<Transaction> filter)
DbIterator<? extends Transaction> getReferencingTransactions(long transactionId, int from, int to)