Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 1,093 Lines • ▼ Show 20 Lines | if (request.fHelp || (request.params.size() > 3)) { | ||||
" has resulted in confusing " | " has resulted in confusing " | ||||
"outcomes, so it is recommended to avoid passing\n" | "outcomes, so it is recommended to avoid passing\n" | ||||
" this argument.\n" | " this argument.\n" | ||||
"2. minconf (numeric, optional) Only include " | "2. minconf (numeric, optional) Only include " | ||||
"transactions confirmed at least this many times. \n" | "transactions confirmed at least this many times. \n" | ||||
" The default is 1 if an account is " | " The default is 1 if an account is " | ||||
"provided or 0 if no account is provided\n") | "provided or 0 if no account is provided\n") | ||||
: std::string( | : std::string( | ||||
"getbalance ( \"(dummy)\" minconf include_watchonly )\n" | "getbalance ( \"dummy\" minconf include_watchonly )\n" | ||||
"\nReturns the total available balance.\n" | "\nReturns the total available balance.\n" | ||||
"The available balance is what the wallet considers " | "The available balance is what the wallet considers " | ||||
"currently spendable, and is\n" | "currently spendable, and is\n" | ||||
"thus affected by options which limit spendability such " | "thus affected by options which limit spendability such " | ||||
"as -spendzeroconfchange.\n" | "as -spendzeroconfchange.\n" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. (dummy) (string, optional) Remains for " | "1. (dummy) (string, optional) Remains for " | ||||
"backward compatibility. Must be excluded or set to " | "backward compatibility. Must be excluded or set to " | ||||
▲ Show 20 Lines • Show All 1,090 Lines • ▼ Show 20 Lines | UniValue listtransactions(const Config &config, const JSONRPCRequest &request) { | ||||
if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
std::string help_text{}; | std::string help_text{}; | ||||
if (!IsDeprecatedRPCEnabled(gArgs, "accounts")) { | if (!IsDeprecatedRPCEnabled(gArgs, "accounts")) { | ||||
help_text = | help_text = | ||||
"listtransactions (dummy count skip include_watchonly)\n" | "listtransactions ( \"dummy\" count skip include_watchonly)\n" | ||||
"\nReturns up to 'count' most recent transactions skipping the " | "\nReturns up to 'count' most recent transactions skipping the " | ||||
"first 'from' transactions for account 'account'.\n" | "first 'from' transactions for account 'account'.\n" | ||||
"Note that the \"account\" argument and \"otheraccount\" return " | "Note that the \"account\" argument and \"otheraccount\" return " | ||||
"value have been removed in V0.20. To use this RPC with an " | "value have been removed in V0.20. To use this RPC with an " | ||||
"\"account\" argument, restart\n" | "\"account\" argument, restart\n" | ||||
"bitcoind with -deprecatedrpc=accounts\n" | "bitcoind with -deprecatedrpc=accounts\n" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. \"dummy\" (string, optional) If set, should be \"*\" for " | "1. \"dummy\" (string, optional) If set, should be \"*\" for " | ||||
▲ Show 20 Lines • Show All 3,426 Lines • Show Last 20 Lines |