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, Block<?,?> block, int nextEraGasPrice)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockAdded.BlockAddedBuilderbuilder()<T extends Block<?,?>>
TgetBlock()DigestgetBlockHash()A cryptographic hash identifying a `Block`intgetNextEraGasPrice()voidsetBlock(Block<?,?> block)A JSON-friendly representation of `Block`.voidsetBlockHash(Digest blockHash)A cryptographic hash identifying a `Block`voidsetNextEraGasPrice(int nextEraGasPrice)
-
-
-
Method Detail
-
getBlock
public <T extends Block<?,?>> T getBlock()
-
builder
public static BlockAdded.BlockAddedBuilder builder()
-
getBlockHash
public Digest getBlockHash()
A cryptographic hash identifying a `Block`
-
getNextEraGasPrice
public int getNextEraGasPrice()
-
setBlockHash
public void setBlockHash(Digest blockHash)
A cryptographic hash identifying a `Block`
-
setBlock
public void setBlock(Block<?,?> block)
A JSON-friendly representation of `Block`.
-
setNextEraGasPrice
public void setNextEraGasPrice(int nextEraGasPrice)
-
-