Class JsonBlockHeader


  • public class JsonBlockHeader
    extends java.lang.Object
    Holds the header data of a Casper block
    Since:
    0.0.1
    See Also:
    JsonBlock
    • Constructor Detail

      • JsonBlockHeader

        public JsonBlockHeader()
    • Method Detail

      • getHeight

        public long getHeight()
        Block height
      • getStateRootHash

        public java.lang.String getStateRootHash()
        Hex-encoded hash digest
      • isRandomBit

        public boolean isRandomBit()
        boolean
      • getBodyHash

        public java.lang.String getBodyHash()
        Hex-encoded hash digest
      • getParentHash

        public java.lang.String getParentHash()
        Hex-encoded hash digest.
      • getAccumulatedSeed

        public java.lang.String getAccumulatedSeed()
        Hex-encoded hash digest
      • getTimeStamp

        public java.util.Date getTimeStamp()
        Timestamp formatted as per RFC 3339
      • getEraId

        public long getEraId()
        Era ID newtype
      • getProtocolVersion

        public java.lang.String getProtocolVersion()
        Casper Platform protocol version
      • setHeight

        public void setHeight​(long height)
        Block height
      • setStateRootHash

        public void setStateRootHash​(java.lang.String stateRootHash)
        Hex-encoded hash digest
      • setRandomBit

        public void setRandomBit​(boolean randomBit)
        boolean
      • setBodyHash

        public void setBodyHash​(java.lang.String bodyHash)
        Hex-encoded hash digest
      • setParentHash

        public void setParentHash​(java.lang.String parentHash)
        Hex-encoded hash digest.
      • setAccumulatedSeed

        public void setAccumulatedSeed​(java.lang.String accumulatedSeed)
        Hex-encoded hash digest
      • setTimeStamp

        public void setTimeStamp​(java.util.Date timeStamp)
        Timestamp formatted as per RFC 3339
      • setEraId

        public void setEraId​(long eraId)
        Era ID newtype
      • setProtocolVersion

        public void setProtocolVersion​(java.lang.String protocolVersion)
        Casper Platform protocol version
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object