@@ -181,20 +181,21 @@ UniValue importaddress(const UniValue& params, bool fHelp)
181
181
if (fHelp || params.size () < 1 || params.size () > 4 )
182
182
throw runtime_error (
183
183
" importaddress \" address\" ( \" label\" rescan p2sh )\n "
184
- " \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.\n "
184
+ " \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.\n "
185
185
" \n Arguments:\n "
186
- " 1. \" address \" (string, required) The address\n "
186
+ " 1. \" script \" (string, required) The hex-encoded script (or address) \n "
187
187
" 2. \" label\" (string, optional, default=\"\" ) An optional label\n "
188
188
" 3. rescan (boolean, optional, default=true) Rescan the wallet for transactions\n "
189
189
" 4. p2sh (boolean, optional, default=false) Add the P2SH version of the script as well\n "
190
190
" \n Note: This call can take minutes to complete if rescan is true.\n "
191
+ " If you have the full public key, you should call importpublickey instead of this.\n "
191
192
" \n Examples:\n "
192
- " \n Import an address with rescan\n "
193
- + HelpExampleCli (" importaddress" , " \" myaddress \" " ) +
193
+ " \n Import a script with rescan\n "
194
+ + HelpExampleCli (" importaddress" , " \" myscript \" " ) +
194
195
" \n Import using a label without rescan\n "
195
- + HelpExampleCli (" importaddress" , " \" myaddress \" \" testing\" false" ) +
196
+ + HelpExampleCli (" importaddress" , " \" myscript \" \" testing\" false" ) +
196
197
" \n As a JSON-RPC call\n "
197
- + HelpExampleRpc (" importaddress" , " \" myaddress \" , \" testing\" , false" )
198
+ + HelpExampleRpc (" importaddress" , " \" myscript \" , \" testing\" , false" )
198
199
);
199
200
200
201
if (fPruneMode )
0 commit comments