Uses of Class
com.privatechain.core.model.Block.Builder
Packages that use Block.Builder
Package
Description
Immutable domain objects — the fundamental data model of the private-blockchain library.
-
Uses of Block.Builder in com.privatechain.core.model
Methods in com.privatechain.core.model that return Block.BuilderModifier and TypeMethodDescriptionstatic Block.BuilderBlock.builder()Returns a new, emptyBlock.Builder.Block.Builder.header(BlockHeader header) Sets the block header.Block.Builder.index(int index) Sets the block index.Block.Builder.minerAddress(String minerAddress) Sets the address of the node producing this block.Block.Builder.previousHash(String previousHash) Sets the hash of the preceding block.Block.Builder.transactions(List<Transaction> transactions) Sets the transaction list for this block.