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

    transactionWatcher

    the instance of TransactionWatcher that triggered this event

    status

    the new status of the transaction

  • Called when the transaction receipt is receieved

    Declaration

    Swift

    func transactionWatcher(_ transactionWatcher: TransactionWatcher, didReceiveReceipt receipt: EthereumTransactionReceiptObject)

    Parameters

    transactionWatcher

    the instance of TransactionWatcher that triggered this event

    receipt

    the 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

    transactionWatcher

    the instance of TransactionWatcher that triggered this event

    event

    the event that was received