| Package | Description |
|---|---|
| com.exonum.binding.core.blockchain | |
| com.exonum.binding.core.blockchain.serialization |
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
Block |
BlockSerializer.fromBytes(byte[] binaryBlock) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
BlockSerializer.toBytes(Block value) |
Copyright © 2019 Exonum. All rights reserved.