Skip to content

Commit df0e97c

Browse files
committed
RPC: Hint for importmulti in help output of importpubkey and importaddress
1 parent 3001cc6 commit df0e97c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/rpcdump.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ UniValue importaddress(const JSONRPCRequest& request)
289289
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
290290
"may report that the imported address exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.\n"
291291
"If you have the full public key, you should call importpubkey instead of this.\n"
292+
"Hint: use importmulti to import more than one address.\n"
292293
"\nNote: If you import a non-standard raw script in hex form, outputs sending to it will be treated\n"
293294
"as change, and not show up in many RPCs.\n",
294295
{
@@ -486,6 +487,7 @@ UniValue importpubkey(const JSONRPCRequest& request)
486487
throw std::runtime_error(
487488
RPCHelpMan{"importpubkey",
488489
"\nAdds a public key (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"
490+
"Hint: use importmulti to import more than one public key.\n"
489491
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
490492
"may report that the imported pubkey exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.\n",
491493
{

0 commit comments

Comments
 (0)