Class Header

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Header.HeaderExtended
      A Block header with an additional `author` field that indicates the block author
      static class  Header.HeaderValue  
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Header​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      BlockNumber getBlockNumber()
      The wrapped BlockNumber
      Digest getDigest()
      The wrapped Digest
      Hash getExtrinsicsRoot()
      The wrapped extrisics root as a Hash
      Hash getHash()
      Convenience method, encodes the header and calculates the Hash
      BlockNumber getNumber()
      Alias for `blockNumber` (this is displayed in JSON)
      Hash getParentHash()
      The wrapped parent as a Hash
      Hash getStateRoot()
      The wrapped state root as a Hash
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • Header

        public Header​(java.lang.Object value)
    • Method Detail

      • getExtrinsicsRoot

        public Hash getExtrinsicsRoot()
        The wrapped extrisics root as a Hash
      • getHash

        public Hash getHash()
        Convenience method, encodes the header and calculates the Hash
      • getNumber

        public BlockNumber getNumber()
        Alias for `blockNumber` (this is displayed in JSON)
      • getParentHash

        public Hash getParentHash()
        The wrapped parent as a Hash
      • getStateRoot

        public Hash getStateRoot()
        The wrapped state root as a Hash