Interface AddedBlockContext
- All Superinterfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefines the different types of block addition events that can occur in the blockchain. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of event that occurred when this block was added.List<? extends TransactionReceipt> A list of transaction receipts for the added block.Methods inherited from interface BlockContext
getBlockBody, getBlockHeader
-
Method Details
-
getEventType
AddedBlockContext.EventType 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.EventTypeindicating how this block was added
-
getTransactionReceipts
List<? extends TransactionReceipt> getTransactionReceipts()A list of transaction receipts for the added block.- Returns:
- A List of
TransactionReceipt
-