Class Block

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​Codec>, Codec

    public class Block
    extends Struct
    A block encoded with header and extrinsics
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Block.BlockValue  
      • 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
      Block​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      Hash getcontentHash()
      Encodes a content Hash for the block
      Extrinsics getExtrinsics()
      The Extrinsics contained in the block
      Hash getHash()
      Block/header Hash
      Header getHeader()
      The Header of the block
      • 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

      • Block

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

      • getcontentHash

        public Hash getcontentHash()
        Encodes a content Hash for the block
      • getExtrinsics

        public Extrinsics getExtrinsics()
        The Extrinsics contained in the block
      • getHash

        public Hash getHash()
        Block/header Hash
      • getHeader

        public Header getHeader()
        The Header of the block