Package com.privatechain.core.event
Class BlockchainEvent.TransactionSubmittedEvent
java.lang.Object
com.privatechain.core.event.BlockchainEvent
com.privatechain.core.event.BlockchainEvent.TransactionSubmittedEvent
- Enclosing class:
BlockchainEvent
Fired after a transaction successfully passes validation and enters the mempool.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.privatechain.core.event.BlockchainEvent
BlockchainEvent.BlockAddedEvent, BlockchainEvent.ForkDetectedEvent, BlockchainEvent.PeerConnectedEvent, BlockchainEvent.PeerDisconnectedEvent, BlockchainEvent.TransactionSubmittedEvent -
Constructor Summary
ConstructorsConstructorDescriptionTransactionSubmittedEvent(Transaction transaction) Constructs aTransactionSubmittedEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the transaction that was submitted to the mempool.toString()Methods inherited from class com.privatechain.core.event.BlockchainEvent
getOccurredAt
-
Constructor Details
-
TransactionSubmittedEvent
Constructs aTransactionSubmittedEvent.- Parameters:
transaction- the transaction that was submitted (non-null)- Throws:
NullPointerException- if transaction is null
-
-
Method Details
-
getTransaction
Returns the transaction that was submitted to the mempool.- Returns:
- non-null
Transaction
-
toString
-