public interface Blockchain
Modifier and Type | Method and Description |
---|---|
DbIterator<? extends Block> |
getAllBlocks() |
Block |
getBlock(long blockId) |
Block |
getBlock(long blockId,
boolean loadTransactions) |
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) |
DbIterator<? extends Transaction> |
getExecutedTransactions(Chain chain,
long senderId,
long recipientId,
byte type,
byte subtype,
int height,
int numberOfConfirmations,
int from,
int to) |
java.util.List<? extends Transaction> |
getExpectedTransactions(Filter<Transaction> filter) |
FxtTransaction |
getFxtTransaction(long transactionId) |
int |
getHeight() |
Block |
getLastBlock() |
Block |
getLastBlock(int timestamp) |
int |
getLastBlockTimestamp() |
DbIterator<? extends ChildTransaction> |
getReferencingTransactions(ChildChain chain,
byte[] referencedTransactionFullHash,
int from,
int to) |
Transaction |
getTransaction(Chain chain,
byte[] fullHash) |
int |
getTransactionCount(Chain chain) |
DbIterator<? extends ChildTransaction> |
getTransactions(ChildChain childChain,
java.sql.Connection con,
java.sql.PreparedStatement pstmt) |
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 FxtTransaction> |
getTransactions(FxtChain chain,
java.sql.Connection con,
java.sql.PreparedStatement pstmt) |
DbIterator<? extends FxtTransaction> |
getTransactions(FxtChain chain,
long accountId,
int numberOfConfirmations,
byte type,
byte subtype,
int blockTimestamp,
int from,
int to) |
boolean |
hasBlock(long blockId) |
boolean |
hasFxtTransaction(long transactionId) |
boolean |
hasTransaction(Chain chain,
byte[] 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 getBlock(long blockId, boolean loadTransactions)
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(Chain chain, byte[] fullHash)
boolean hasTransaction(Chain chain, byte[] fullHash)
FxtTransaction getFxtTransaction(long transactionId)
boolean hasFxtTransaction(long transactionId)
int getTransactionCount(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 FxtTransaction> getTransactions(FxtChain chain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, int from, int to)
DbIterator<? extends FxtTransaction> getTransactions(FxtChain chain, java.sql.Connection con, java.sql.PreparedStatement pstmt)
DbIterator<? extends ChildTransaction> getTransactions(ChildChain childChain, java.sql.Connection con, java.sql.PreparedStatement pstmt)
java.util.List<? extends Transaction> getExpectedTransactions(Filter<Transaction> filter)
DbIterator<? extends ChildTransaction> getReferencingTransactions(ChildChain chain, byte[] referencedTransactionFullHash, int from, int to)
DbIterator<? extends Transaction> getExecutedTransactions(Chain chain, long senderId, long recipientId, byte type, byte subtype, int height, int numberOfConfirmations, int from, int to)