# Zcashd sendmany t to t address

**URL:** <https://forum.zcashcommunity.com/t/zcashd-sendmany-t-to-t-address/33202>\
**Category:** Technical Support\
**Created:** [April 15, 2019, 9:17am UTC](https://forum.zcashcommunity.com/t/zcashd-sendmany-t-to-t-address/33202 "2019-04-15T09:17:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PavelNiedoba](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/pavelniedoba/32/12637_2.png) [@PavelNiedoba](https://forum.zcashcommunity.com/u/PavelNiedoba)\
**Post date:** [April 15, 2019, 9:17am UTC](https://forum.zcashcommunity.com/t/zcashd-sendmany-t-to-t-address/33202/1 "2019-04-15T09:17:02Z")

</div>

I installed new zcashd, enabled testnet, txindex, let it download chain  
I went to [https://faucet.testnet.z.cash/](https://faucet.testnet.z.cash/) got 3 ZEC confirmed in my wallet  
I generated fresh address using rpc  
I tried to send some coins to that address:  
`zcash-cli sendtoaddress tmXLVS17VJRLHjjH3UjUt1kfFeDJQAPmb3x 0.123 "cdvd"`  
but got  
`error code: -4 error message: Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here. `  
I’m surre this is not the case

same procedure works fine with bitcoind

what is it I’m doing wrong here ?

---

<div class="post-metadata">

**Author:** ![anon16456014](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@anon16456014](https://forum.zcashcommunity.com/u/anon16456014)\
**Post date:** [April 15, 2019, 10:04am UTC](https://forum.zcashcommunity.com/t/zcashd-sendmany-t-to-t-address/33202/2 "2019-04-15T10:04:56Z")

</div>

[https://zcash.readthedocs.io/en/latest/rtd\_pages/payment\_api.html#z-sendmany](https://zcash.readthedocs.io/en/latest/rtd_pages/payment_api.html#z-sendmany)

---

<div class="post-metadata">

**Author:** ![PavelNiedoba](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/pavelniedoba/32/12637_2.png) [@PavelNiedoba](https://forum.zcashcommunity.com/u/PavelNiedoba)\
**Post date:** [April 15, 2019, 12:47pm UTC](https://forum.zcashcommunity.com/t/zcashd-sendmany-t-to-t-address/33202/3 "2019-04-15T12:47:01Z")

</div>

Are you trying to say I should use `sendmany` instead of `sendtoaddress` ? Otherwice I want to add that I don’t spen coinbase, I got coins from faucet in transparent transaction.

I tried sendmany, which worked for me, but it needs from address specified, but most of the time I need to send coins from more addresses, I think lates bitcoind don’t have this limitation

---

<div class="post-metadata">

**Author:** ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)\
**Post date:** [April 15, 2019, 2:31pm UTC](https://forum.zcashcommunity.com/t/zcashd-sendmany-t-to-t-address/33202/4 "2019-04-15T14:31:05Z")

</div>

> [@PavelNiedoba](#):
>
> I tried sendmany, which worked for me, but it needs from address specified, but most of the time I need to send coins from more addresses, I think lates bitcoind don’t have this limitation

With `sendmany` you specify `""` as the first argument to use available funds see [sendmany - Zcash 4.5.1-1 RPC Docs](https://zcash-rpc.github.io/sendmany.html)

I just tried `sendtoaddress` and it works as it should. Was your node fully synced when sending?
