send abstract method

Future<void> send({
  1. required Transaction transaction,
  2. Duration timeout = const Duration(seconds: 10),
  3. required TransactionConfirmationHandler onConfirmation,
  4. required TransactionErrorHandler onError,
})

Sends a transaction and listens to confirmations.

Sender auto-closes in the following situations : - when transaction is fully confirmed - when timeout is reached - when transaction fails

Implementation

Future<void> send({
  required Transaction transaction,
  Duration timeout = const Duration(seconds: 10),
  required TransactionConfirmationHandler onConfirmation,
  required TransactionErrorHandler onError,
});