Interface AddedBlockContext

All Superinterfaces:
BlockContext

public interface AddedBlockContext extends BlockContext
Provides context information about a block that has been added to the blockchain.

This interface extends BlockContext to include additional metadata about how and why the block was added to the chain. It is primarily used by plugins to receive notifications about block addition events and to understand the nature of these events.

See Also:
  • Method Details

    • getEventType

      Returns the type of event that occurred when this block was added.

      The event type provides important context about how the block relates to the blockchain state and whether it represents normal progression, a fork, a reorganization, or just storage.

      Returns:
      the AddedBlockContext.EventType indicating how this block was added
    • getTransactionReceipts

      List<? extends TransactionReceipt> getTransactionReceipts()
      A list of transaction receipts for the added block.
      Returns:
      A List of TransactionReceipt