Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcdump.cpp
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
if (request.fHelp || request.params.size() < 1 || request.params.size() > 3) | if (request.fHelp || request.params.size() < 1 || request.params.size() > 3) | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"importprivkey \"privkey\" ( \"label\" ) ( rescan )\n" | "importprivkey \"privkey\" ( \"label\" ) ( rescan )\n" | ||||
"\nAdds a private key (as returned by dumpprivkey) to your wallet. " | "\nAdds a private key (as returned by dumpprivkey) to your wallet. " | ||||
"Requires a new wallet backup.\n" | "Requires a new wallet backup.\n" | ||||
"Hint: use importmulti to import more than one private key.\n" | |||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. \"privkey\" (string, required) The private key (see " | "1. \"privkey\" (string, required) The private key (see " | ||||
"dumpprivkey)\n" | "dumpprivkey)\n" | ||||
"2. \"label\" (string, optional, default=\"\") An " | "2. \"label\" (string, optional, default=\"\") An " | ||||
"optional label\n" | "optional label\n" | ||||
"3. rescan (boolean, optional, default=true) Rescan " | "3. rescan (boolean, optional, default=true) Rescan " | ||||
"the wallet for transactions\n" | "the wallet for transactions\n" | ||||
"\nNote: This call can take minutes to complete if rescan is true, " | "\nNote: This call can take minutes to complete if rescan is true, " | ||||
▲ Show 20 Lines • Show All 1,417 Lines • Show Last 20 Lines |