zcash-android-wallet-sdk/docs/-synchronizer/send-to-address.md

20 lines
1.1 KiB
Markdown
Raw Normal View History

2020-01-15 05:07:00 -08:00
[zcash-android-wallet-sdk](../../index.md) / [cash.z.wallet.sdk](../index.md) / [Synchronizer](index.md) / [sendToAddress](./send-to-address.md)
# sendToAddress
`abstract fun sendToAddress(spendingKey: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, zatoshi: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, toAddress: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, memo: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "", fromAccountIndex: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = 0): Flow<`[`PendingTransaction`](../../cash.z.ecc.android.sdk.entity/-pending-transaction/index.md)`>`
Sends zatoshi.
### Parameters
2020-01-15 05:07:00 -08:00
`spendingKey` - the key that allows spends to occur.
`zatoshi` - the amount of zatoshi to send.
2019-03-30 09:22:20 -07:00
`toAddress` - the recipient's address.
`memo` - the optional memo to include as part of the transaction.
2020-06-09 20:28:21 -07:00
`fromAccountId` - the optional account id to use. By default, the first account is used.