zcash-android-wallet-sdk / cash.z.wallet.sdk / Synchronizer / cancelSpend

cancelSpend

abstract 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.

Parameters

transaction - the transaction to cancel.

Return
true when the cancellation request was successful. False when it is too late.