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!