zcash-android-wallet-sdk / cash.z.wallet.sdk.transaction / PersistentTransactionManager / initSpend

initSpend

suspend fun initSpend(zatoshiValue: Long, toAddress: String, memo: String, fromAccountIndex: Int): PendingTransaction

Initialize a spend with the main purpose of creating an idea to use for tracking it until completion.

Parameters

zatoshi - the amount to spend.

toAddress - the address to which funds will be sent.

memo - the optionally blank memo associated with this transaction.

fromAccountIndex - the account from which to spend funds.

Return
the associated pending transaction whose ID can be used to monitor for changes.