Class BlockAdded

  • All Implemented Interfaces:
    EventData

    public class BlockAdded
    extends java.lang.Object
    implements EventData
    The BlockAdded event is emitted whenever a new block is added to the blockchain and stored locally in the node.
    • Constructor Detail

      • BlockAdded

        public BlockAdded()
    • Method Detail

      • getBlockHash

        public Digest getBlockHash()
        A cryptographic hash identifying a `Block`
      • getBlock

        public JsonBlock getBlock()
        A JSON-friendly representation of `Block`.
      • setBlockHash

        public void setBlockHash​(Digest blockHash)
        A cryptographic hash identifying a `Block`
      • setBlock

        public void setBlock​(JsonBlock block)
        A JSON-friendly representation of `Block`.