# Zcash-cli z\_sendmany question

**URL:** <https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766>\
**Category:** Mining Support\
**Created:** [March 14, 2018, 9:18am UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766 "2018-03-14T09:18:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![siposf](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@siposf](https://forum.zcashcommunity.com/u/siposf)\
**Post date:** [March 14, 2018, 9:18am UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/1 "2018-03-14T09:18:42Z")

</div>

Hi,

I have a software wallet on my linux machnine. I had mined some ZEC with my 1060 which I would like to send to my Kraken account. I used that command for that:  
export TADDR=‘t1PfKXcSA6iEKgJyPF7prkbeKyoksPaZK7s’  
export DEPO=‘t1gpkTghbwvsYNxoDi7yZ4jjBywt7y9gH1A’  
zcash-cli z\_sendmany “$TADDR” “[{"address": "$DEPO", "amount": 0.01}]”

I can see that 0.01 ZEC arrived to my Kraken account but my balance get lowered by 0.02 ZEC!  
Here are the logs:  
async rpc opid-02995e6b-f586-4957-a24c-811ff99a01be finished (status=success, tx=CTransaction(hash=90c94964db, ver=1, vin.size=2, v  
CTxIn(COutPoint(7487714e3b, 89), scriptSig=)  
CTxIn(COutPoint(ae88feba08, 111), scriptSig=)  
CTxOut(nValue=0.01000000, scriptPubKey=OP\_DUP OP\_HASH160 fbc0b3d32227)  
CTxOut(nValue=0.00990000, scriptPubKey=OP\_DUP OP\_HASH160 afc1551eaf52)

I tried it again with the same result.  
If I check it on the explorer website:  
[https://explorer.zcha.in/accounts/t1PfKXcSA6iEKgJyPF7prkbeKyoksPaZK7s](https://explorer.zcha.in/accounts/t1PfKXcSA6iEKgJyPF7prkbeKyoksPaZK7s)

I see that I send 0.04 ZEC instead of 0.02. Why?

Thanks.

---

<div class="post-metadata">

**Author:** ![johnwisdom](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/johnwisdom/32/5836_2.png) [@johnwisdom](https://forum.zcashcommunity.com/u/johnwisdom)\
**Post date:** [March 14, 2018, 11:06am UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/2 "2018-03-14T11:06:22Z")

</div>

z\_sendmany should be from a shielded address no?

from my point of view this shouldn’t work since your trying to send from a transparent address.

also sendmany is usually used to send 2 or more transactions. Sending only one transaction I would suggest you “sendfrom” →   
or “sendtoaddress” →

---

<div class="post-metadata">

**Author:** ![Kahooli](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kahooli](https://forum.zcashcommunity.com/u/Kahooli)\
**Post date:** [March 14, 2018, 2:56pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/3 "2018-03-14T14:56:51Z")

</div>

you can use Z\_sendmany for any transaction. and that’s the preferred method for me.

It looks to me that you sent .01 and paid the .0001 fee and .0099 was returned to a change address.

---

<div class="post-metadata">

**Author:** ![Kahooli](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kahooli](https://forum.zcashcommunity.com/u/Kahooli)\
**Post date:** [March 14, 2018, 2:59pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/4 "2018-03-14T14:59:17Z")

</div>

You can check the balances of each utxo with listunspent.

---

<div class="post-metadata">

**Author:** ![siposf](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@siposf](https://forum.zcashcommunity.com/u/siposf)\
**Post date:** [March 14, 2018, 5:15pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/5 "2018-03-14T17:15:10Z")

</div>

Thanks.  
What is the “change address”? Is it possible to send coin from that address also?

---

<div class="post-metadata">

**Author:** ![Kahooli](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kahooli](https://forum.zcashcommunity.com/u/Kahooli)\
**Post date:** [March 14, 2018, 9:27pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/6 "2018-03-14T21:27:27Z")

</div>

Yes. They are your addresses too. You should be able to see that your wallet balance has not decreased.

---

<div class="post-metadata">

**Author:** ![jumparo](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jumparo](https://forum.zcashcommunity.com/u/jumparo)\
**Post date:** [March 6, 2019, 12:16pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/7 "2019-03-06T12:16:46Z")

</div>

Hello, I am trying to send zec using

> zcash-cli sendtoaddress

but by default is a zero balanced account. How could I change the default account?

---

<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:** [March 6, 2019, 3:28pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-sendmany-question/27766/8 "2019-03-06T15:28:58Z")

</div>

Answered here: [How to send properly zec using cli-wallet? - #2 by garethtdavies](https://forum.zcashcommunity.com/t/how-to-send-properly-zec-using-cli-wallet/32847/2)
