TransactionWatcherDelegate
public protocol TransactionWatcherDelegate : AnyObject
A class that will receive updates about a transaction.
-
Called when the transaction’s status changes
Declaration
Swift
func transactionWatcher(_ transactionWatcher: TransactionWatcher, didUpdateStatus status: TransactionWatcher.Status)Parameters
transactionWatcherthe instance of TransactionWatcher that triggered this event
statusthe new status of the transaction
-
Called when the transaction receipt is receieved
Declaration
Swift
func transactionWatcher(_ transactionWatcher: TransactionWatcher, didReceiveReceipt receipt: EthereumTransactionReceiptObject)Parameters
transactionWatcherthe instance of TransactionWatcher that triggered this event
receiptthe receipt object of the transaction
-
Called when an instance of an event being watched is received
Declaration
Swift
func transactionWatcher(_ transactionWatcher: TransactionWatcher, didReceiveEvent event: SolidityEmittedEvent)Parameters
transactionWatcherthe instance of TransactionWatcher that triggered this event
eventthe event that was received
View on GitHub
TransactionWatcherDelegate Protocol Reference