Package com.exonum.client.response
Class Block.BlockBuilder
java.lang.Object
com.exonum.client.response.Block.BlockBuilder
- Enclosing class:
- Block
public static class Block.BlockBuilder extends Object
-
Method Summary
Modifier and Type Method Description Block
build()
Block.BlockBuilder
commitTime(ZonedDateTime commitTime)
Time when the block was committed to the blockchain.Block.BlockBuilder
height(long height)
The height of this block which is a distance between the last block and the "genesis" block.Block.BlockBuilder
numTransactions(int numTransactions)
Number of transactions in this block.Block.BlockBuilder
previousBlockHash(@NonNull HashCode previousBlockHash)
Hash link to the previous block in the blockchain.Block.BlockBuilder
proposerId(int proposerId)
Identifier of the leader node which has proposed the block.Block.BlockBuilder
stateHash(@NonNull HashCode stateHash)
Hash of the blockchain state after applying transactions in the block.String
toString()
Block.BlockBuilder
txRootHash(@NonNull HashCode txRootHash)
Root hash of the Merkle tree of transactions in this block.
-
Method Details
-
proposerId
Identifier of the leader node which has proposed the block. -
height
The height of this block which is a distance between the last block and the "genesis" block. Genesis block has 0 height. Therefore, the blockchain height is equal to the number of blocks plus one.The height also identifies each block in the blockchain.
-
numTransactions
Number of transactions in this block. -
previousBlockHash
Hash link to the previous block in the blockchain. -
txRootHash
Root hash of the Merkle tree of transactions in this block. -
stateHash
Hash of the blockchain state after applying transactions in the block. -
commitTime
Time when the block was committed to the blockchain. -
build
-
toString
-