Z_sendmany syntax/format to add PrivacyPolicy param

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!

1 Like

z_sendmany fromAddress amountsJson 10 0.00001 privacyPolicy

5 args, space-separated

5 Likes

Indeed!

7 Likes

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!

2 Likes
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

3 Likes