On this page

latest contributor to this doc

Last Edit:

@gcharang

Disclosure

The following RPC calls interact with the komodod software, and are made available through the komodo-cli software.

EXPERIMENTAL FEATURE: Payment disclosure is currently DISABLED. This call always fails.

z_getpaymentdisclosure transaction js_index output_index ("message")

The z_getpaymentdisclosure method generates a payment disclosure for a given joinsplit output.

NameTypeDescription
"txid"(string, required)(in development)
"js_index"(string, required)
"output_index"(string, required)
"message"(string, optional)

NameTypeDescription
"paymentdisclosure"(string)a hex data string, with a "zpd:" prefix

Command:

./komodo-cli z_getpaymentdisclosure 96f12882450429324d5f3b48630e3168220e49ab7b0f066e5c2935a6b88bb0f2 0 0 "refund"

You can find your rpcuser, rpcpassword, and rpcport in your coin's .conf file.

Command:

curl --user $rpcuser:$rpcpassword --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:$rpcport/

z_validatepaymentdisclosure "paymentdisclosure"

The z_validatepaymentdisclosure method validates a payment disclosure.

EXPERIMENTAL FEATURE: Payment disclosure is currently DISABLED. This call always fails.

NameTypeDescription
"paymentdisclosure"(string, required)hex data string, with "zpd:" prefix

NameTypeDescription
(currently disabled)

Command:

./komodo-cli z_validatepaymentdisclosure "zpd:706462ff004c561a0447ba2ec51184e6c204..."

You can find your rpcuser, rpcpassword, and rpcport in the coin's .conf file.

Command:

curl --user $rpcuser:$rpcpassword --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_validatepaymentdisclosure", "params": ["zpd:706462ff004c561a0447ba2ec51184e6c204..."] }' -H 'content-type: text/plain;' http://127.0.0.1:$rpcport/