Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 4,224 Lines • ▼ Show 20 Lines | static UniValue AddressBookDataToJSON(const CAddressBookData &data, | ||||
} | } | ||||
ret.pushKV("purpose", data.purpose); | ret.pushKV("purpose", data.purpose); | ||||
return ret; | return ret; | ||||
} | } | ||||
UniValue getaddressinfo(const Config &config, const JSONRPCRequest &request) { | UniValue getaddressinfo(const Config &config, const JSONRPCRequest &request) { | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"getaddressinfo", | "getaddressinfo", | ||||
"\nReturn information about the given bitcoin address.\n" | "Return information about the given bitcoin address.\n" | ||||
"Some of the information will only be present if the address is in the " | "Some of the information will only be present if the address is in the " | ||||
"active wallet.\n", | "active wallet.\n", | ||||
{ | { | ||||
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, | {"address", RPCArg::Type::STR, RPCArg::Optional::NO, | ||||
"The bitcoin address for which to get information."}, | "The bitcoin address for which to get information."}, | ||||
}, | }, | ||||
RPCResult{ | RPCResult{ | ||||
RPCResult::Type::OBJ, | RPCResult::Type::OBJ, | ||||
▲ Show 20 Lines • Show All 644 Lines • ▼ Show 20 Lines | static UniValue walletcreatefundedpsbt(const Config &config, | ||||
result.pushKV("fee", fee); | result.pushKV("fee", fee); | ||||
result.pushKV("changepos", change_position); | result.pushKV("changepos", change_position); | ||||
return result; | return result; | ||||
} | } | ||||
static UniValue upgradewallet(const Config &config, | static UniValue upgradewallet(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
RPCHelpMan{"upgradewallet", | RPCHelpMan{"upgradewallet", | ||||
"\nUpgrade the wallet. Upgrades to the latest version if no " | "Upgrade the wallet. Upgrades to the latest version if no " | ||||
"version number is specified\n" | "version number is specified\n" | ||||
"New keys may be generated and a new wallet backup will need to " | "New keys may be generated and a new wallet backup will need to " | ||||
"be made.", | "be made.", | ||||
{{"version", RPCArg::Type::NUM, | {{"version", RPCArg::Type::NUM, | ||||
/* default */ strprintf("%d", FEATURE_LATEST), | /* default */ strprintf("%d", FEATURE_LATEST), | ||||
"The version number to upgrade to. Default is the latest " | "The version number to upgrade to. Default is the latest " | ||||
"wallet version"}}, | "wallet version"}}, | ||||
RPCResult{RPCResult::Type::NONE, "", ""}, | RPCResult{RPCResult::Type::NONE, "", ""}, | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |