758 B
758 B
zcash-android-wallet-sdk / cash.z.wallet.sdk / SdkSynchronizer / cancelSpend
cancelSpend
suspend fun cancelSpend(transaction:
PendingTransaction
):
Boolean
Overrides Synchronizer.cancelSpend
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.