# Z\_sendmany example with txfee needed

**URL:** <https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111>\
**Category:** Technical Support\
**Created:** [August 20, 2020, 12:12pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111 "2020-08-20T12:12:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezaron](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/ezaron/32/9036_2.png) [@ezaron](https://forum.zcashcommunity.com/u/ezaron)\
**Post date:** [August 20, 2020, 12:12pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/1 "2020-08-20T12:12:49Z")

</div>

Hi:  
Can anyone provide an example rpc z\_sendmany query which includes the transaction fee? I can’t seem to figure out the syntax and always receive “Json parse error”. I am running zcashd v3.1.0 on linux.  
thx!

---

<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:** [August 20, 2020, 3:32pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/2 "2020-08-20T15:32:10Z")

</div>

Here is an example specifying all available options (including minconf and fee). See more here: [z\_sendmany - Zcash 4.5.1-1 RPC Docs](https://zcash-rpc.github.io/z_sendmany.html)

```auto
zcash-cli z_sendmany "zs1examplea4lqxrtmlpkayj0hxpfdd3ve62xhd7jds8c2a8tqz5kekplt469eza5wu8djdvpauezv" "[{\"address\": \"zs1examplea4lqxrtmlpkayj0hxpfdd3ve62xhd7jds8c2a8tqz5kekplt469eza5wu8djdvpauezv \", \"memo\": \"Optional memo\", \"amount\": 1}]" 1 0.0001

```

---

<div class="post-metadata">

**Author:** ![ezaron](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/ezaron/32/9036_2.png) [@ezaron](https://forum.zcashcommunity.com/u/ezaron)\
**Post date:** [August 20, 2020, 4:08pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/3 "2020-08-20T16:08:12Z")

</div>

Aha. Thank you. I was incorrectly not quoting the square brackets.

---

<div class="post-metadata">

**Author:** ![ezaron](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/ezaron/32/9036_2.png) [@ezaron](https://forum.zcashcommunity.com/u/ezaron)\
**Post date:** [August 20, 2020, 4:18pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/4 "2020-08-20T16:18:20Z")

</div>

Have you ever used this with the rpc, using the curl command? I am still getting JSON parse error from that method.

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 20, 2020, 11:54pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/5 "2020-08-20T23:54:01Z")

</div>

Is there a specific reason you want to set a fee?

Having a unique fee other than the default 0.0001 ZEC is not recommended due to privacy concerns. A unique fee setting can stand out among others making it possible to correlate transactions for a single user.

---

<div class="post-metadata">

**Author:** ![ezaron](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/ezaron/32/9036_2.png) [@ezaron](https://forum.zcashcommunity.com/u/ezaron)\
**Post date:** [August 21, 2020, 3:09am UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/6 "2020-08-21T03:09:41Z")

</div>

My primary goal is to exercise the API and verify that it works according to specifications.  
I would also like to verify what you’ve stated about correlating transactions with specific users or addresses.

---

<div class="post-metadata">

**Author:** ![M8A9](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/m8a9/32/20680_2.png) [@M8A9](https://forum.zcashcommunity.com/u/M8A9)\
**Post date:** [February 22, 2021, 6:17am UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/7 "2021-02-22T06:17:27Z")

</div>

Hello,  
What amount format is accepted for amount ?  
I try : 0.0045 But I get ‘Invalid amount’ !

I use with my local node and rpc.

Amount need to be like that in zatoshis : 45000… ?

Thanks

---

<div class="post-metadata">

**Author:** ![M8A9](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/m8a9/32/20680_2.png) [@M8A9](https://forum.zcashcommunity.com/u/M8A9)\
**Post date:** [February 22, 2021, 8:12am UTC](https://forum.zcashcommunity.com/t/z-sendmany-example-with-txfee-needed/37111/8 "2021-02-22T08:12:53Z")

</div>

Hello,  
I Found answer, originally, I have this : 0.0487654434566 zcash  
WIth 8 decimals format, it works : 0.048765443

Good day
