Nexa Header Database Queries
Functions
Link copied to clipboard
fun <T : Any> getAll(mapper: (hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long) -> T): Query<T>
Link copied to clipboard
fun <T : Any> getAtHeight(heights: Long, mapper: (hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long) -> T): Query<T>
Link copied to clipboard
fun <T : Any> getByHash(hash: ByteArray, mapper: (hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long) -> T): Query<T>
Link copied to clipboard
fun <T : Any> getByHeight(height: Long, mapper: (hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long) -> T): Query<T>
Link copied to clipboard
fun <T : Any> getByLatestHeight(mapper: (hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long) -> T): Query<T>
Link copied to clipboard
fun <T : Any> getByMostWork(mapper: (hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long) -> T): Query<T>
Link copied to clipboard
fun insert(hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long): QueryResult<Long>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun update(hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long, hash: ByteArray): QueryResult<Long>
Link copied to clipboard
fun upsert(hash: ByteArray, hashPrevBlock: ByteArray?, diffBits: Long, hashAncestor: ByteArray?, hashTxFilter: ByteArray?, time: Long, height: Long, chainWork: ByteArray, size: Long, feePoolAmt: Long, utxoCommitment: ByteArray?, minerData: ByteArray?, nonce: ByteArray?, hashMerkleRoot: ByteArray?, txCount: Long): QueryResult<Long>