z_getpaymentdisclosure - Zcash 4.5.1-1 RPC

z_getpaymentdisclosure "txid" "js_index" "output_index" ("message") 

Generate a payment disclosure for a given joinsplit output.

EXPERIMENTAL FEATURE

WARNING: z_getpaymentdisclosure is disabled.
To enable it, restart zcashd with the following command line options:
-experimentalfeatures and -paymentdisclosure

Alternatively add these two lines to the zcash.conf file:

experimentalfeatures=1
paymentdisclosure=1

Arguments:
1. "txid"            (string, required) 
2. "js_index"        (string, required) 
3. "output_index"    (string, required) 
4. "message"         (string, optional) 

Result:
"paymentdisclosure"  (string) Hex data string, with "zpd:" prefix.

Examples:
> zcash-cli z_getpaymentdisclosure 96f12882450429324d5f3b48630e3168220e49ab7b0f066e5c2935a6b88bb0f2 0 0 "refund"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getpaymentdisclosure", "params": ["96f12882450429324d5f3b48630e3168220e49ab7b0f066e5c2935a6b88bb0f2", 0, 0, "refund"] }' -H 'content-type: text/plain;' http://127.0.0.1:8232/


Maintained by @_garethtdavies; modified by: mdr0id;license of the docs is MIT (see zcash repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet zcash node