Class BlockAdded
- java.lang.Object
-
- com.casper.sdk.model.event.blockadded.BlockAdded
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockAdded.BlockAddedBuilder
-
Constructor Summary
Constructors Constructor Description BlockAdded()BlockAdded(Digest blockHash, JsonBlock block)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockAdded.BlockAddedBuilderbuilder()JsonBlockgetBlock()A JSON-friendly representation of `Block`.DigestgetBlockHash()A cryptographic hash identifying a `Block`voidsetBlock(JsonBlock block)A JSON-friendly representation of `Block`.voidsetBlockHash(Digest blockHash)A cryptographic hash identifying a `Block`
-
-
-
Method Detail
-
builder
public static BlockAdded.BlockAddedBuilder builder()
-
getBlockHash
public Digest getBlockHash()
A cryptographic hash identifying a `Block`
-
getBlock
public JsonBlock getBlock()
A JSON-friendly representation of `Block`.
-
setBlockHash
public void setBlockHash(Digest blockHash)
A cryptographic hash identifying a `Block`
-
setBlock
public void setBlock(JsonBlock block)
A JSON-friendly representation of `Block`.
-
-