Skip to content

Commit a5123c2

Browse files
committed
[Documentation] Improve help for mintzerocoin rpc command
1 parent 9a0b734 commit a5123c2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/rpcwallet.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,16 +2483,23 @@ UniValue mintzerocoin(const UniValue& params, bool fHelp)
24832483
{
24842484
if (fHelp || params.size() < 1 || params.size() > 2)
24852485
throw runtime_error(
2486-
"mintzerocoin <amount> [UTXOs]\n"
2487-
"amount: Enter an amount of Piv to convert to zPiv\n"
2488-
"UTXOs: (string, optional) A json array of objects. Each object the txid (string) vout (numeric)\n"
2486+
"mintzerocoin amount ( UTXOs )\n"
2487+
"amount: (numeric, required) Enter an amount of Piv to convert to zPiv\n"
2488+
"UTXOs: (string, optional) A json array of objects. Each object needs the txid (string) and vout (numeric)\n"
24892489
" [ (json array of json objects)\n"
24902490
" {\n"
24912491
" \"txid\":\"id\", (string) The transaction id\n"
24922492
" \"vout\": n (numeric) The output number\n"
24932493
" }\n"
24942494
" ,...\n"
24952495
" ]\n"
2496+
"\nExamples:\n"
2497+
"\nMint 50 from anywhere\n" +
2498+
HelpExampleCli("mintzerocoin", "50") +
2499+
"\nMint 13 from a specific output\n" +
2500+
HelpExampleCli("mintzerocoin", "13 \"[{\\\"txid\\\":\\\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\\\",\\\"vout\\\":1}]\"") +
2501+
"\nAs a json rpc call\n" +
2502+
HelpExampleRpc("mintzerocoin", "13, \"[{\\\"txid\\\":\\\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\\\",\\\"vout\\\":1}]\"")
24962503
+ HelpRequiringPassphrase());
24972504

24982505
LOCK2(cs_main, pwalletMain->cs_wallet);

0 commit comments

Comments
 (0)