Skip to content

Commit 8d1b552

Browse files
authored
Merge pull request #195 from AkioNak/fix-getbalance-helptext
Fix help text in wallet/rpcwallet.cpp
2 parents a1ed9bf + df67616 commit 8d1b552

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ UniValue getbalance(const JSONRPCRequest& request)
866866

867867
if (request.fHelp || request.params.size() > 4)
868868
throw runtime_error(
869-
"getbalance ( \"account\" minconf include_watchonly )\n"
869+
"getbalance ( \"account\" minconf include_watchonly \"assetlabel\" )\n"
870870
"\nIf account is not specified, returns the server's total available balance.\n"
871871
"If account is specified (DEPRECATED), returns the balance in the account.\n"
872872
"Note that the account \"\" is not the same as leaving the parameter out.\n"
@@ -886,17 +886,17 @@ UniValue getbalance(const JSONRPCRequest& request)
886886
" avoid passing this argument.\n"
887887
"2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n"
888888
"3. include_watchonly (bool, optional, default=false) Also include balance in watch-only addresses (see 'importaddress')\n"
889-
"4. \"assetlabel\" (string, optional) Hex asset id or asset label for balance. IF THIS IS USED ALL ACCOUNT ARGUMENTS ARE IGNORED\n"
889+
"4. \"assetlabel\" (string, optional) Hex asset id or asset label for balance. IF THIS IS USED ALL OTHER ARGUMENTS ARE IGNORED\n"
890890
"\nResult:\n"
891891

892892
"amount (numeric) The total amount in " + CURRENCY_UNIT + " received for this account.\n"
893893
"\nExamples:\n"
894894
"\nThe total amount in the wallet\n"
895895
+ HelpExampleCli("getbalance", "") +
896-
"\nThe total amount in the wallet at least 5 blocks confirmed\n"
897-
+ HelpExampleCli("getbalance", "\"*\" 6") +
896+
"\nThe total amount in the wallet of the specified asset (leading 3 arguments are ignored)\n"
897+
+ HelpExampleCli("getbalance", "\"*\" 6 false \"09f663de96be771f50cab5ded00256ffe63773e2eaa9a604092951cc3d7c6621\"") +
898898
"\nAs a json rpc call\n"
899-
+ HelpExampleRpc("getbalance", "\"*\", 6")
899+
+ HelpExampleRpc("getbalance", "\"*\", 6 false \"09f663de96be771f50cab5ded00256ffe63773e2eaa9a604092951cc3d7c6621\"")
900900
);
901901

902902
LOCK2(cs_main, pwalletMain->cs_wallet);

0 commit comments

Comments
 (0)