# Z\_sendmany syntax/format to add PrivacyPolicy param

**URL:** <https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909>\
**Category:** Technical Support\
**Created:** [June 1, 2022, 4:32am UTC](https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909 "2022-06-01T04:32:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeepBitcoinFree.org](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/keepbitcoinfree.org/32/20454_2.png) [@KeepBitcoinFree.org](https://forum.zcashcommunity.com/u/KeepBitcoinFree.org)\
**Post date:** [June 1, 2022, 4:32am UTC](https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909/1 "2022-06-01T04:32:28Z")

</div>

I’m attempting to move ZEC across shielded pools but get stuck trying to include the correct syntax for a “privacyPolicy” of “AllowRevealedAmounts” to the command.

The documentation lists the command as -  
z\_sendmany “fromaddress” [{“address”:… ,“amount”:…},…] ( minconf ) ( fee ) ( privacyPolicy )

Sending zs → zs without the privacyPolicy included worked well, as the privacyPolicy is not required. I cannot find any documentation of anyone actually including the privacyPolicy in their command so I’m not sure how it should be formatted being shown as… ( privacyPolicy )

I’ve tried every way I can think of to include the privacyPolicy but I just end up with a JSON error.

Command:  
./zcash-cli z\_sendmany “zsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” ‘[{“address”: “uxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”, “amount”: 5.0}]’

Result:  
z\_sendmany finished (status=failed, error=Sending from the Sapling shielded pool to the Orchard shielded pool is not enabled by default because it will publicly reveal the transaction amount. THIS MAY AFFECT YOUR PRIVACY. Resubmit with the `privacyPolicy` parameter set to `AllowRevealedAmounts` or weaker if you wish to allow this transaction to proceed anyway.)

I’ve tried adding the “privacyPolicy” at the end of the command using the following syntax with no luck:  
AllowRevealedAmounts  
“AllowRevealedAmounts”  
( AllowRevealedAmounts )  
( “AllowRevealedAmounts” )  
(\ AllowRevealedAmounts\ )  
(\ “AllowRevealedAmounts”\ )  
AllowRevealedAmounts  
(AllowRevealedAmounts)  
“(AllowRevealedAmounts)”  
‘[{“privacyPolicy”: “AllowRevealedAmounts”}]’  
“privacyPolicy=AllowRevealedAmounts”  
-privacyPolicy AllowRevealedAmounts  
“-privacyPolicy AllowRevealedAmounts”  
…etc.

Getting a similar JSON Error each time -  
error: Error parsing JSON:AllowRevealedAmounts

Thanks!

---

<div class="post-metadata">

**Author:** ![BrunchTime](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/brunchtime/32/11275_2.png) [@BrunchTime](https://forum.zcashcommunity.com/u/BrunchTime)\
**Post date:** [June 1, 2022, 4:42am UTC](https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909/2 "2022-06-01T04:42:58Z")

</div>

> **[z\_sendmany - Zcash 5.2.0 RPC Docs](https://zcash.github.io/rpc/z_sendmany.html)**
>
> Zcash 5.2.0 RPC Docs - z\_sendmany

z\_sendmany fromAddress amountsJson 10 0.00001 privacyPolicy

5 args, space-separated

---

<div class="post-metadata">

**Author:** ![BostonZcash](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/bostonzcash/32/15173_2.png) [@BostonZcash](https://forum.zcashcommunity.com/u/BostonZcash)\
**Post date:** [June 1, 2022, 4:46am UTC](https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909/3 "2022-06-01T04:46:01Z")

</div>

Indeed!

> <https://twitter.com/BostonZcash/status/1531799329345785857>

---

<div class="post-metadata">

**Author:** ![KeepBitcoinFree.org](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/keepbitcoinfree.org/32/20454_2.png) [@KeepBitcoinFree.org](https://forum.zcashcommunity.com/u/KeepBitcoinFree.org)\
**Post date:** [June 1, 2022, 3:08pm UTC](https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909/4 "2022-06-01T15:08:18Z")

</div>

Thanks, I thought it was possible that I had to include all of the arguments/parameters but couldn’t find any reference to that. Appreciate the help!

---

<div class="post-metadata">

**Author:** ![dismad](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/dismad/32/18432_2.png) [@dismad](https://forum.zcashcommunity.com/u/dismad)\
**Post date:** [June 18, 2022, 2:53am UTC](https://forum.zcashcommunity.com/t/z-sendmany-syntax-format-to-add-privacypolicy-param/41909/5 "2022-06-18T02:53:32Z")

</div>

```auto
zcash-cli z_sendmany "<your z-address>" '[{"address": "<your UA>", "amount": <amount>}]' <minconf> <fee> <privacyPolicy>

```

Thanks for the tips, was able to create my first tx to a UA using the above template.

![Screenshot_2022-06-17_19-51-17](https://global.discourse-cdn.com/zcash/original/3X/1/b/1b1cad4e71396b61b7c732b757e59b286e366517.png)
