Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcdump.cpp
Show First 20 Lines • Show All 1,530 Lines • ▼ Show 20 Lines | std::shared_ptr<CWallet> const wallet = | ||||
GetWalletForJSONRPCRequest(mainRequest); | GetWalletForJSONRPCRequest(mainRequest); | ||||
CWallet *const pwallet = wallet.get(); | CWallet *const pwallet = wallet.get(); | ||||
if (!EnsureWalletIsAvailable(pwallet, mainRequest.fHelp)) { | if (!EnsureWalletIsAvailable(pwallet, mainRequest.fHelp)) { | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"importmulti", | "importmulti", | ||||
"Import addresses/scripts (with private or public keys, redeem " | "\nImport addresses/scripts (with private or public keys, redeem " | ||||
"script (P2SH)), rescanning all addresses in one-shot-only (rescan can " | "script (P2SH)), optionally rescanning the blockchain from the " | ||||
"be disabled via options). Requires a new wallet backup.\n", | "earliest creation time of the imported scripts. Requires a new wallet " | ||||
"backup.\n" | |||||
"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" | |||||
"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", | |||||
{ | { | ||||
{"requests", | {"requests", | ||||
RPCArg::Type::ARR, | RPCArg::Type::ARR, | ||||
RPCArg::Optional::NO, | RPCArg::Optional::NO, | ||||
"Data to be imported", | "Data to be imported", | ||||
{ | { | ||||
{ | { | ||||
"", | "", | ||||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"import"}, | "import"}, | ||||
{"internal", RPCArg::Type::BOOL, | {"internal", RPCArg::Type::BOOL, | ||||
/* default */ "false", | /* default */ "false", | ||||
"Stating whether matching outputs should be treated " | "Stating whether matching outputs should be treated " | ||||
"as not incoming payments (also known as change)"}, | "as not incoming payments (also known as change)"}, | ||||
{"watchonly", RPCArg::Type::BOOL, | {"watchonly", RPCArg::Type::BOOL, | ||||
/* default */ "false", | /* default */ "false", | ||||
"Stating whether matching outputs should be " | "Stating whether matching outputs should be " | ||||
"considered watched even when not all private keys " | "considered watchonly."}, | ||||
"are provided."}, | |||||
{"label", RPCArg::Type::STR, /* default */ "''", | {"label", RPCArg::Type::STR, /* default */ "''", | ||||
"Label to assign to the address, only allowed with " | "Label to assign to the address, only allowed with " | ||||
"internal=false"}, | "internal=false"}, | ||||
}, | }, | ||||
}, | }, | ||||
}, | }, | ||||
"\"requests\""}, | "\"requests\""}, | ||||
{"options", | {"options", | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |