@@ -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 " \n If 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 " \n Result:\n "
891891
892892 " amount (numeric) The total amount in " + CURRENCY_UNIT + " received for this account.\n "
893893 " \n Examples:\n "
894894 " \n The total amount in the wallet\n "
895895 + HelpExampleCli (" getbalance" , " " ) +
896- " \n The total amount in the wallet at least 5 blocks confirmed \n "
897- + HelpExampleCli (" getbalance" , " \" *\" 6" ) +
896+ " \n The total amount in the wallet of the specified asset (leading 3 arguments are ignored) \n "
897+ + HelpExampleCli (" getbalance" , " \" *\" 6 false \" 09f663de96be771f50cab5ded00256ffe63773e2eaa9a604092951cc3d7c6621 \" " ) +
898898 " \n As 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