suspend fun cancelSpend(transaction: PendingTransaction): Boolean
Attempts to cancel a transaction that is about to be sent. Typically, cancellation is only an option if the transaction has not yet been submitted to the server.
transaction
- the transaction to cancel.
Return
true when the cancellation request was successful. False when it is too late.