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 Blockbuild()Block.BlockBuildercommitTime(ZonedDateTime commitTime)Time when the block was committed to the blockchain.Block.BlockBuilderheight(long height)The height of this block which is a distance between the last block and the "genesis" block.Block.BlockBuildernumTransactions(int numTransactions)Number of transactions in this block.Block.BlockBuilderpreviousBlockHash(@NonNull HashCode previousBlockHash)Hash link to the previous block in the blockchain.Block.BlockBuilderproposerId(int proposerId)Identifier of the leader node which has proposed the block.Block.BlockBuilderstateHash(@NonNull HashCode stateHash)Hash of the blockchain state after applying transactions in the block.StringtoString()Block.BlockBuildertxRootHash(@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
-