Class MinimalBlockInfo


  • public class MinimalBlockInfo
    extends java.lang.Object
    Minimal info of a `Block`
    Since:
    0.0.1
    See Also:
    PeerData
    • 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

      • 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