Skip to content

Commit 2c71edc

Browse files
committed
[wallet] [rpc] Fix importaddress help text
1 parent a0079d4 commit 2c71edc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/wallet/rpcdump.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ UniValue importaddress(const JSONRPCRequest& request)
255255
if (request.fHelp || request.params.size() < 1 || request.params.size() > 4)
256256
throw std::runtime_error(
257257
"importaddress \"address\" ( \"label\" rescan p2sh )\n"
258-
"\nAdds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.\n"
258+
"\nAdds an address or script (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.\n"
259259
"\nArguments:\n"
260-
"1. \"script\" (string, required) The hex-encoded script (or address)\n"
260+
"1. \"address\" (string, required) The Bitcoin address (or hex-encoded script)\n"
261261
"2. \"label\" (string, optional, default=\"\") An optional label\n"
262262
"3. rescan (boolean, optional, default=true) Rescan the wallet for transactions\n"
263263
"4. p2sh (boolean, optional, default=false) Add the P2SH version of the script as well\n"
@@ -267,12 +267,12 @@ UniValue importaddress(const JSONRPCRequest& request)
267267
"\nNote: If you import a non-standard raw script in hex form, outputs sending to it will be treated\n"
268268
"as change, and not show up in many RPCs.\n"
269269
"\nExamples:\n"
270-
"\nImport a script with rescan\n"
271-
+ HelpExampleCli("importaddress", "\"myscript\"") +
270+
"\nImport an address with rescan\n"
271+
+ HelpExampleCli("importaddress", "\"myaddress\"") +
272272
"\nImport using a label without rescan\n"
273-
+ HelpExampleCli("importaddress", "\"myscript\" \"testing\" false") +
273+
+ HelpExampleCli("importaddress", "\"myaddress\" \"testing\" false") +
274274
"\nAs a JSON-RPC call\n"
275-
+ HelpExampleRpc("importaddress", "\"myscript\", \"testing\", false")
275+
+ HelpExampleRpc("importaddress", "\"myaddress\", \"testing\", false")
276276
);
277277

278278

0 commit comments

Comments
 (0)