@@ -255,9 +255,9 @@ UniValue importaddress(const JSONRPCRequest& request)
255
255
if (request.fHelp || request.params .size () < 1 || request.params .size () > 4 )
256
256
throw std::runtime_error (
257
257
" importaddress \" address\" ( \" label\" rescan p2sh )\n "
258
- " \n Adds 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
+ " \n Adds 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 "
259
259
" \n Arguments:\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 "
261
261
" 2. \" label\" (string, optional, default=\"\" ) An optional label\n "
262
262
" 3. rescan (boolean, optional, default=true) Rescan the wallet for transactions\n "
263
263
" 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)
267
267
" \n Note: If you import a non-standard raw script in hex form, outputs sending to it will be treated\n "
268
268
" as change, and not show up in many RPCs.\n "
269
269
" \n Examples:\n "
270
- " \n Import a script with rescan\n "
271
- + HelpExampleCli (" importaddress" , " \" myscript \" " ) +
270
+ " \n Import an address with rescan\n "
271
+ + HelpExampleCli (" importaddress" , " \" myaddress \" " ) +
272
272
" \n Import using a label without rescan\n "
273
- + HelpExampleCli (" importaddress" , " \" myscript \" \" testing\" false" ) +
273
+ + HelpExampleCli (" importaddress" , " \" myaddress \" \" testing\" false" ) +
274
274
" \n As a JSON-RPC call\n "
275
- + HelpExampleRpc (" importaddress" , " \" myscript \" , \" testing\" , false" )
275
+ + HelpExampleRpc (" importaddress" , " \" myaddress \" , \" testing\" , false" )
276
276
);
277
277
278
278
0 commit comments