@@ -301,7 +301,7 @@ static UniValue setlabel(const JSONRPCRequest& request)
301
301
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The bitcoin address to be associated with a label."},
302
302
{"label", RPCArg::Type::STR, RPCArg::Optional::NO, "The label to assign to the address."},
303
303
},
304
- RPCResults{ },
304
+ RPCResult{RPCResult::Type::NONE, "", "" },
305
305
RPCExamples{
306
306
HelpExampleCli("setlabel", "\"" + EXAMPLE_ADDRESS[0] + "\" \"tabby\"")
307
307
+ HelpExampleRpc("setlabel", "\"" + EXAMPLE_ADDRESS[0] + "\", \"tabby\"")
@@ -784,7 +784,7 @@ static UniValue getunconfirmedbalance(const JSONRPCRequest &request)
784
784
RPCHelpMan{"getunconfirmedbalance",
785
785
"DEPRECATED\nIdentical to getbalances().mine.untrusted_pending\n",
786
786
{},
787
- RPCResults{ },
787
+ RPCResult{RPCResult::Type::NUM, "", "The balance" },
788
788
RPCExamples{""},
789
789
}.Check(request);
790
790
@@ -1776,7 +1776,7 @@ static UniValue abandontransaction(const JSONRPCRequest& request)
1776
1776
{
1777
1777
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
1778
1778
},
1779
- RPCResults{ },
1779
+ RPCResult{RPCResult::Type::NONE, "", "" },
1780
1780
RPCExamples{
1781
1781
HelpExampleCli("abandontransaction", "\"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\"")
1782
1782
+ HelpExampleRpc("abandontransaction", "\"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\"")
@@ -1817,7 +1817,7 @@ static UniValue backupwallet(const JSONRPCRequest& request)
1817
1817
{
1818
1818
{"destination", RPCArg::Type::STR, RPCArg::Optional::NO, "The destination directory or file"},
1819
1819
},
1820
- RPCResults{ },
1820
+ RPCResult{RPCResult::Type::NONE, "", "" },
1821
1821
RPCExamples{
1822
1822
HelpExampleCli("backupwallet", "\"backup.dat\"")
1823
1823
+ HelpExampleRpc("backupwallet", "\"backup.dat\"")
@@ -1855,7 +1855,7 @@ static UniValue keypoolrefill(const JSONRPCRequest& request)
1855
1855
{
1856
1856
{"newsize", RPCArg::Type::NUM, /* default */ "100", "The new keypool size"},
1857
1857
},
1858
- RPCResults{ },
1858
+ RPCResult{RPCResult::Type::NONE, "", "" },
1859
1859
RPCExamples{
1860
1860
HelpExampleCli("keypoolrefill", "")
1861
1861
+ HelpExampleRpc("keypoolrefill", "")
@@ -1907,7 +1907,7 @@ static UniValue walletpassphrase(const JSONRPCRequest& request)
1907
1907
{"passphrase", RPCArg::Type::STR, RPCArg::Optional::NO, "The wallet passphrase"},
1908
1908
{"timeout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The time to keep the decryption key in seconds; capped at 100000000 (~3 years)."},
1909
1909
},
1910
- RPCResults{ },
1910
+ RPCResult{RPCResult::Type::NONE, "", "" },
1911
1911
RPCExamples{
1912
1912
"\nUnlock the wallet for 60 seconds\n"
1913
1913
+ HelpExampleCli("walletpassphrase", "\"my pass phrase\" 60") +
@@ -1987,7 +1987,7 @@ static UniValue walletpassphrasechange(const JSONRPCRequest& request)
1987
1987
{"oldpassphrase", RPCArg::Type::STR, RPCArg::Optional::NO, "The current passphrase"},
1988
1988
{"newpassphrase", RPCArg::Type::STR, RPCArg::Optional::NO, "The new passphrase"},
1989
1989
},
1990
- RPCResults{ },
1990
+ RPCResult{RPCResult::Type::NONE, "", "" },
1991
1991
RPCExamples{
1992
1992
HelpExampleCli("walletpassphrasechange", "\"old one\" \"new one\"")
1993
1993
+ HelpExampleRpc("walletpassphrasechange", "\"old one\", \"new one\"")
@@ -2037,7 +2037,7 @@ static UniValue walletlock(const JSONRPCRequest& request)
2037
2037
"After calling this method, you will need to call walletpassphrase again\n"
2038
2038
"before being able to call any methods which require the wallet to be unlocked.\n",
2039
2039
{},
2040
- RPCResults{ },
2040
+ RPCResult{RPCResult::Type::NONE, "", "" },
2041
2041
RPCExamples{
2042
2042
"\nSet the passphrase for 2 minutes to perform a transaction\n"
2043
2043
+ HelpExampleCli("walletpassphrase", "\"my pass phrase\" 120") +
@@ -2082,7 +2082,7 @@ static UniValue encryptwallet(const JSONRPCRequest& request)
2082
2082
{
2083
2083
{"passphrase", RPCArg::Type::STR, RPCArg::Optional::NO, "The pass phrase to encrypt the wallet with. It must be at least 1 character, but should be long."},
2084
2084
},
2085
- RPCResults{ },
2085
+ RPCResult{RPCResult::Type::STR, "", "A string with further instructions" },
2086
2086
RPCExamples{
2087
2087
"\nEncrypt your wallet\n"
2088
2088
+ HelpExampleCli("encryptwallet", "\"my pass phrase\"") +
@@ -2767,7 +2767,7 @@ static UniValue unloadwallet(const JSONRPCRequest& request)
2767
2767
{
2768
2768
{"wallet_name", RPCArg::Type::STR, /* default */ "the wallet name from the RPC request", "The name of the wallet to unload."},
2769
2769
},
2770
- RPCResults{ },
2770
+ RPCResult{RPCResult::Type::NONE, "", "" },
2771
2771
RPCExamples{
2772
2772
HelpExampleCli("unloadwallet", "wallet_name")
2773
2773
+ HelpExampleRpc("unloadwallet", "wallet_name")
@@ -4013,7 +4013,7 @@ UniValue sethdseed(const JSONRPCRequest& request)
4013
4013
{"seed", RPCArg::Type::STR, /* default */ "random seed", "The WIF private key to use as the new HD seed.\n"
4014
4014
" The seed value can be retrieved using the dumpwallet command. It is the private key marked hdseed=1"},
4015
4015
},
4016
- RPCResults{ },
4016
+ RPCResult{RPCResult::Type::NONE, "", "" },
4017
4017
RPCExamples{
4018
4018
HelpExampleCli("sethdseed", "")
4019
4019
+ HelpExampleCli("sethdseed", "false")
0 commit comments