java.lang.Object
io.mokamint.node.ChainInfos
Providers of chain information objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGson decoder.static classGson encoder.static classJson representation. -
Method Summary
-
Method Details
-
of
public static ChainInfo of(long height, Optional<byte[]> genesisHash, Optional<byte[]> headHash, Optional<byte[]> headStateId) Yields a new chain information object.- Parameters:
height- the height of the chaingenesisHash- the hash of the genesis block, if anyheadHash- the hash of the head block, if anyheadStateId- the state identifier at the end of the execution of the head block, if any- Returns:
- the chain information object
-