Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 907 Lines • ▼ Show 20 Lines | static UniValue getunconfirmedbalance(const Config &config, | ||||
if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
if (request.fHelp || request.params.size() > 0) { | if (request.fHelp || request.params.size() > 0) { | ||||
throw std::runtime_error(RPCHelpMan{ | throw std::runtime_error(RPCHelpMan{ | ||||
"getunconfirmedbalance", | "getunconfirmedbalance", | ||||
"Returns the server's total unconfirmed balance\n", | "DEPRECATED\nIdentical to getbalances().mine.untrusted_pending\n", | ||||
{}, | {}, | ||||
RPCResults{}, | RPCResults{}, | ||||
RPCExamples{""}, | RPCExamples{""}, | ||||
} | } | ||||
.ToString()); | .ToString()); | ||||
} | } | ||||
// Make sure the results are valid at least up to the most recent block | // Make sure the results are valid at least up to the most recent block | ||||
▲ Show 20 Lines • Show All 2,049 Lines • ▼ Show 20 Lines | const RPCHelpMan help{ | ||||
"getwalletinfo", | "getwalletinfo", | ||||
"Returns an object containing various wallet state info.\n", | "Returns an object containing various wallet state info.\n", | ||||
{}, | {}, | ||||
RPCResult{ | RPCResult{ | ||||
"{\n" | "{\n" | ||||
" \"walletname\": xxxxx, (string) the wallet name\n" | " \"walletname\": xxxxx, (string) the wallet name\n" | ||||
" \"walletversion\": xxxxx, (numeric) the wallet " | " \"walletversion\": xxxxx, (numeric) the wallet " | ||||
"version\n" | "version\n" | ||||
" \"balance\": xxxxxxx, (numeric) Identical to " | " \"balance\": xxxxxxx, (numeric) DEPRECATED. " | ||||
"getbalances().mine.trusted\n" | "Identical to getbalances().mine.trusted\n" | ||||
" \"unconfirmed_balance\": xxx, (numeric) Identical to " | " \"unconfirmed_balance\": xxx, (numeric) DEPRECATED. " | ||||
"getbalances().mine.untrusted_pending\n" | "Identical to getbalances().mine.untrusted_pending\n" | ||||
" \"immature_balance\": xxxxxx, (numeric) Identical to " | " \"immature_balance\": xxxxxx, (numeric) DEPRECATED. " | ||||
"getbalances().mine.immature\n" | "Identical to getbalances().mine.immature\n" | ||||
" \"txcount\": xxxxxxx, (numeric) the total number " | " \"txcount\": xxxxxxx, (numeric) the total number " | ||||
"of transactions in the wallet\n" | "of transactions in the wallet\n" | ||||
" \"keypoololdest\": xxxxxx, (numeric) the timestamp " | " \"keypoololdest\": xxxxxx, (numeric) the timestamp " | ||||
"(seconds since Unix epoch) of the oldest pre-generated key in the " | "(seconds since Unix epoch) of the oldest pre-generated key in the " | ||||
"key pool\n" | "key pool\n" | ||||
" \"keypoolsize\": xxxx, (numeric) how many new keys " | " \"keypoolsize\": xxxx, (numeric) how many new keys " | ||||
"are pre-generated (only counts external keys)\n" | "are pre-generated (only counts external keys)\n" | ||||
" \"keypoolsize_hd_internal\": xxxx, (numeric) how many new keys " | " \"keypoolsize_hd_internal\": xxxx, (numeric) how many new keys " | ||||
▲ Show 20 Lines • Show All 1,881 Lines • Show Last 20 Lines |