Uses of Class
com.exonum.binding.blockchain.Block
-
Packages that use Block Package Description com.exonum.binding.blockchain com.exonum.binding.blockchain.serialization -
-
Uses of Block in com.exonum.binding.blockchain
Methods in com.exonum.binding.blockchain that return Block Modifier and Type Method Description Block
Block.Builder. build()
Creates a new block with the set arguments.Block
Blockchain. getBlock(long height)
Returns the block at the given height.Block
Blockchain. getLastBlock()
Returns the latest committed block.Methods in com.exonum.binding.blockchain that return types with arguments of type Block Modifier and Type Method Description java.util.Optional<Block>
Blockchain. findBlock(com.exonum.binding.common.hash.HashCode blockHash)
Returns a block object for given block hash.MapIndex<com.exonum.binding.common.hash.HashCode,Block>
Blockchain. getBlocks()
Returns a map that stores a block object for every block hash.static com.google.gson.TypeAdapter<Block>
Block. typeAdapter(com.google.gson.Gson gson)
Provides a Gson type adapter for this class.Methods in com.exonum.binding.blockchain with parameters of type Block Modifier and Type Method Description boolean
Blockchain. containsBlock(Block block)
Returns true if the blockchain contains exactly the same block as the passed value; false if it does not contain such block.ProofListIndexProxy<com.exonum.binding.common.hash.HashCode>
Blockchain. getBlockTransactions(Block block)
Returns a proof list of transaction hashes committed in the given block. -
Uses of Block in com.exonum.binding.blockchain.serialization
Methods in com.exonum.binding.blockchain.serialization that return Block Modifier and Type Method Description Block
BlockSerializer. fromBytes(byte[] binaryBlock)
Methods in com.exonum.binding.blockchain.serialization with parameters of type Block Modifier and Type Method Description byte[]
BlockSerializer. toBytes(Block value)
-