Class JsonBlockHeader.JsonBlockHeaderBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.block.JsonBlockHeader.JsonBlockHeaderBuilder
-
- Enclosing class:
- JsonBlockHeader
public static class JsonBlockHeader.JsonBlockHeaderBuilder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
height
public JsonBlockHeader.JsonBlockHeaderBuilder height(long height)
Block height- Returns:
this
.
-
stateRootHash
public JsonBlockHeader.JsonBlockHeaderBuilder stateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digest- Returns:
this
.
-
randomBit
public JsonBlockHeader.JsonBlockHeaderBuilder randomBit(boolean randomBit)
boolean- Returns:
this
.
-
eraEnd
public JsonBlockHeader.JsonBlockHeaderBuilder eraEnd(JsonEraEnd eraEnd)
- Returns:
this
.- See Also:
JsonEraEnd
-
bodyHash
public JsonBlockHeader.JsonBlockHeaderBuilder bodyHash(java.lang.String bodyHash)
Hex-encoded hash digest- Returns:
this
.
-
parentHash
public JsonBlockHeader.JsonBlockHeaderBuilder parentHash(java.lang.String parentHash)
Hex-encoded hash digest.- Returns:
this
.
-
accumulatedSeed
public JsonBlockHeader.JsonBlockHeaderBuilder accumulatedSeed(java.lang.String accumulatedSeed)
Hex-encoded hash digest- Returns:
this
.
-
timeStamp
public JsonBlockHeader.JsonBlockHeaderBuilder timeStamp(java.util.Date timeStamp)
Timestamp formatted as per RFC 3339- Returns:
this
.
-
eraId
public JsonBlockHeader.JsonBlockHeaderBuilder eraId(long eraId)
Era ID newtype- Returns:
this
.
-
protocolVersion
public JsonBlockHeader.JsonBlockHeaderBuilder protocolVersion(java.lang.String protocolVersion)
Casper Platform protocol version- Returns:
this
.
-
build
public JsonBlockHeader build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-