aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-01-29 14:17:14 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-29 14:17:20 +0100
commit624154114f30b73662a01dbc8de734dc423a3d51 (patch)
tree585841e1e0fdfb074d40ff8c4b8f6f460d63a779 /src
parentc78bd937017212c89c1c7aab07399cec5b6b3bdd (diff)
parent3cf1f43694f82f0f3e5526c10be2ff379c2d9f76 (diff)
downloadbitcoin-624154114f30b73662a01dbc8de734dc423a3d51.tar.xz
Merge pull request #3597
3cf1f43 Mention `*` value for account in documentation for `getbalance` RPC (Wladimir J. van der Laan)
Diffstat (limited to 'src')
-rw-r--r--src/rpcwallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 68f5fe525a..5c6c873762 100644
--- a/src/rpcwallet.cpp
+++ b/src/rpcwallet.cpp
@@ -589,13 +589,15 @@ Value getbalance(const Array& params, bool fHelp)
"Note that the account \"\" is not the same as leaving the parameter out.\n"
"The server total may be different to the balance in the default \"\" account.\n"
"\nArguments:\n"
- "1. \"account\" (string, optional) The selected account. It may be the default account using \"\".\n"
+ "1. \"account\" (string, optional) The selected account, or \"*\" for entire wallet. It may be the default account using \"\".\n"
"2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n"
"\nResult:\n"
"amount (numeric) The total amount in btc received for this account.\n"
"\nExamples:\n"
"\nThe total amount in the server across all accounts\n"
+ HelpExampleCli("getbalance", "") +
+ "\nThe total amount in the server across all accounts, with at least 5 confirmations\n"
+ + HelpExampleCli("getbalance", "\"*\" 6") +
"\nThe total amount in the default account with at least 1 confirmation\n"
+ HelpExampleCli("getbalance", "\"\"") +
"\nThe total amount in the account named tabby with at least 6 confirmations\n"