Skip to content

Commit

Permalink
[Documentation] Improve help for mintzerocoin rpc command
Browse files Browse the repository at this point in the history
  • Loading branch information
Warrows committed Mar 10, 2018
1 parent 9a0b734 commit a5123c2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2483,16 +2483,23 @@ UniValue mintzerocoin(const UniValue& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"mintzerocoin <amount> [UTXOs]\n"
"amount: Enter an amount of Piv to convert to zPiv\n"
"UTXOs: (string, optional) A json array of objects. Each object the txid (string) vout (numeric)\n"
"mintzerocoin amount ( UTXOs )\n"
"amount: (numeric, required) Enter an amount of Piv to convert to zPiv\n"
"UTXOs: (string, optional) A json array of objects. Each object needs the txid (string) and vout (numeric)\n"
" [ (json array of json objects)\n"
" {\n"
" \"txid\":\"id\", (string) The transaction id\n"
" \"vout\": n (numeric) The output number\n"
" }\n"
" ,...\n"
" ]\n"
"\nExamples:\n"
"\nMint 50 from anywhere\n" +
HelpExampleCli("mintzerocoin", "50") +
"\nMint 13 from a specific output\n" +
HelpExampleCli("mintzerocoin", "13 \"[{\\\"txid\\\":\\\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\\\",\\\"vout\\\":1}]\"") +
"\nAs a json rpc call\n" +
HelpExampleRpc("mintzerocoin", "13, \"[{\\\"txid\\\":\\\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\\\",\\\"vout\\\":1}]\"")
+ HelpRequiringPassphrase());

LOCK2(cs_main, pwalletMain->cs_wallet);
Expand Down

0 comments on commit a5123c2

Please sign in to comment.