You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (mainRequest.fHelp || mainRequest.params.size() < 1 || mainRequest.params.size() > 2)
1494
1497
throwstd::runtime_error(
1495
1498
RPCHelpMan{"importmulti",
1496
-
"\nImport addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options). Requires a new wallet backup.\n"
1499
+
"\nImport addresses/scripts (with private or public keys, redeem script (P2SH)), optionally rescanning the blockchain from the earliest creation time of the imported scripts. Requires a new wallet backup.\n"
1500
+
"If an address/script is imported without all of the private keys required to spend from that address, it will be watchonly. The 'watchonly' option must be set to true in this case or a warning will be returned.\n"
1501
+
"Conversely, if all the private keys are provided and the address/script is spendable, the watchonly option must be set to false, or a warning will be returned.\n"
1497
1502
"\nNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls\n"
1498
1503
"may report that the imported keys, addresses or scripts exists but related transactions are still missing.\n",
{"range", RPCArg::Type::RANGE, RPCArg::Optional::OMITTED, "If a ranged descriptor is used, this specifies the end or the range (in the form [begin,end]) to import"},
1529
1534
{"internal", RPCArg::Type::BOOL, /* default */"false", "Stating whether matching outputs should be treated as not incoming payments (also known as change)"},
1530
-
{"watchonly", RPCArg::Type::BOOL, /* default */"false", "Stating whether matching outputs should be considered watched even when not all private keys are provided."},
1535
+
{"watchonly", RPCArg::Type::BOOL, /* default */"false", "Stating whether matching outputs should be considered watchonly."},
1531
1536
{"label", RPCArg::Type::STR, /* default */"''", "Label to assign to the address, only allowed with internal=false"},
1532
1537
{"keypool", RPCArg::Type::BOOL, /* default */"false", "Stating whether imported public keys should be added to the keypool for when users request new addresses. Only allowed when wallet private keys are disabled"},
"\"sigsrequired\" : xxxxx (numeric, optional) Number of signatures required to spend multisig output (only if \"script\" is \"multisig\")\n"
3722
-
"\"pubkey\" : \"publickeyhex\", (string, optional) The hex value of the raw public key, for single-key addresses (possibly embedded in P2SH)\n"
3723
-
"\"embedded\" : {...}, (object, optional) Information about the address embedded in P2SH, if relevant and known. It includes all getaddressinfo output fields for the embedded address, excluding metadata (\"timestamp\", \"hdkeypath\") and relation to the wallet (\"ismine\", \"iswatchonly\").\n"
3722
+
"\"pubkey\" : \"publickeyhex\", (string, optional) The hex value of the raw public key, for single-key addresses\n"
3724
3723
"\"iscompressed\" : true|false, (boolean, optional) If the pubkey is compressed\n"
3725
3724
"\"label\" : \"label\" (string) The label associated with the address, \"\" is the default label\n"
3726
3725
"\"timestamp\" : timestamp, (number, optional) The creation time of the key if available in seconds since epoch (Jan 1 1970 GMT)\n"
0 commit comments