Skip to content

Commit 37a166f

Browse files
committed
rpc: Named arguments for wallet calls
1 parent 78b684f commit 37a166f

File tree

2 files changed

+75
-75
lines changed

2 files changed

+75
-75
lines changed

src/wallet/rpcdump.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ UniValue importprivkey(const JSONRPCRequest& request)
8282

8383
if (request.fHelp || request.params.size() < 1 || request.params.size() > 3)
8484
throw runtime_error(
85-
"importprivkey \"bitcoinprivkey\" ( \"label\" rescan )\n"
85+
"importprivkey \"bitcoinprivkey\" ( \"label\" ) ( rescan )\n"
8686
"\nAdds a private key (as returned by dumpprivkey) to your wallet.\n"
8787
"\nArguments:\n"
8888
"1. \"bitcoinprivkey\" (string, required) The private key (see dumpprivkey)\n"
@@ -963,10 +963,10 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
963963
// clang-format off
964964
if (mainRequest.fHelp || mainRequest.params.size() < 1 || mainRequest.params.size() > 2)
965965
throw runtime_error(
966-
"importmulti '[<json import requests>]' '<json options>' \n\n"
966+
"importmulti \"requests\" \"options\"\n\n"
967967
"Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).\n\n"
968968
"Arguments:\n"
969-
"1. request array (array, required) Data to be imported\n"
969+
"1. requests (array, required) Data to be imported\n"
970970
" [ (array of json objects)\n"
971971
" {\n"
972972
" \"scriptPubKey\": \"<script>\" | { \"address\":\"<address>\" }, (string / json, required) Type of scriptPubKey (string for script, json for address)\n"
@@ -980,7 +980,7 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
980980
" }\n"
981981
" ,...\n"
982982
" ]\n"
983-
"2. json options (json, optional)\n"
983+
"2. options (json, optional)\n"
984984
" {\n"
985985
" \"rescan\": <false>, (boolean, optional, default: true) Stating if should rescan the blockchain after all imports\n"
986986
" }\n"

0 commit comments

Comments
 (0)