Class MinimalBlockInfo.MinimalBlockInfoBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.status.MinimalBlockInfo.MinimalBlockInfoBuilder
-
- Enclosing class:
- MinimalBlockInfo
public static class MinimalBlockInfo.MinimalBlockInfoBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MinimalBlockInfo
build()
MinimalBlockInfo.MinimalBlockInfoBuilder
creator(PublicKey creator)
MinimalBlockInfo.MinimalBlockInfoBuilder
eraId(java.math.BigInteger eraId)
Era IDMinimalBlockInfo.MinimalBlockInfoBuilder
hash(java.lang.String hash)
Block HashMinimalBlockInfo.MinimalBlockInfoBuilder
height(java.math.BigInteger height)
Block HeightMinimalBlockInfo.MinimalBlockInfoBuilder
stateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digestMinimalBlockInfo.MinimalBlockInfoBuilder
timeStamp(java.sql.Date timeStamp)
Timestamp formatted as per RFC 3339java.lang.String
toString()
-
-
-
Method Detail
-
creator
public MinimalBlockInfo.MinimalBlockInfoBuilder creator(PublicKey creator)
- Returns:
this
.- See Also:
PublicKey
-
eraId
public MinimalBlockInfo.MinimalBlockInfoBuilder eraId(java.math.BigInteger eraId)
Era ID- Returns:
this
.
-
hash
public MinimalBlockInfo.MinimalBlockInfoBuilder hash(java.lang.String hash)
Block Hash- Returns:
this
.
-
height
public MinimalBlockInfo.MinimalBlockInfoBuilder height(java.math.BigInteger height)
Block Height- Returns:
this
.
-
stateRootHash
public MinimalBlockInfo.MinimalBlockInfoBuilder stateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digest- Returns:
this
.
-
timeStamp
public MinimalBlockInfo.MinimalBlockInfoBuilder timeStamp(java.sql.Date timeStamp)
Timestamp formatted as per RFC 3339- Returns:
this
.
-
build
public MinimalBlockInfo build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-