Class MinimalBlockInfo
- java.lang.Object
-
- com.syntifi.casper.sdk.model.status.MinimalBlockInfo
-
public class MinimalBlockInfo extends java.lang.Object
Minimal info of a `Block`- Since:
- 0.0.1
- See Also:
PeerData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MinimalBlockInfo.MinimalBlockInfoBuilder
-
Constructor Summary
Constructors Constructor Description MinimalBlockInfo()
MinimalBlockInfo(PublicKey creator, java.math.BigInteger eraId, java.lang.String hash, java.math.BigInteger height, java.lang.String stateRootHash, java.sql.Date timeStamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinimalBlockInfo.MinimalBlockInfoBuilder
builder()
PublicKey
getCreator()
java.math.BigInteger
getEraId()
Era IDjava.lang.String
getHash()
Block Hashjava.math.BigInteger
getHeight()
Block Heightjava.lang.String
getStateRootHash()
Hex-encoded hash digestjava.sql.Date
getTimeStamp()
Timestamp formatted as per RFC 3339void
setCreator(PublicKey creator)
void
setEraId(java.math.BigInteger eraId)
Era IDvoid
setHash(java.lang.String hash)
Block Hashvoid
setHeight(java.math.BigInteger height)
Block Heightvoid
setStateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digestvoid
setTimeStamp(java.sql.Date timeStamp)
Timestamp formatted as per RFC 3339
-
-
-
Constructor Detail
-
MinimalBlockInfo
public MinimalBlockInfo(PublicKey creator, java.math.BigInteger eraId, java.lang.String hash, java.math.BigInteger height, java.lang.String stateRootHash, java.sql.Date timeStamp)
-
MinimalBlockInfo
public MinimalBlockInfo()
-
-
Method Detail
-
builder
public static MinimalBlockInfo.MinimalBlockInfoBuilder builder()
-
getEraId
public java.math.BigInteger getEraId()
Era ID
-
getHash
public java.lang.String getHash()
Block Hash
-
getHeight
public java.math.BigInteger getHeight()
Block Height
-
getStateRootHash
public java.lang.String getStateRootHash()
Hex-encoded hash digest
-
getTimeStamp
public java.sql.Date getTimeStamp()
Timestamp formatted as per RFC 3339
-
setEraId
public void setEraId(java.math.BigInteger eraId)
Era ID
-
setHash
public void setHash(java.lang.String hash)
Block Hash
-
setHeight
public void setHeight(java.math.BigInteger height)
Block Height
-
setStateRootHash
public void setStateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digest
-
setTimeStamp
public void setTimeStamp(java.sql.Date timeStamp)
Timestamp formatted as per RFC 3339
-
-