strUsage+=HelpMessageOpt("-rpcuser=<user>",_("Username for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcuser=<user>",_("Username for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcpassword=<pw>",_("Password for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcpassword=<pw>",_("Password for JSON-RPC connections"));
strUsage+=HelpMessageOpt("-rpcclienttimeout=<n>",strprintf(_("Timeout in seconds during HTTP requests, or 0 for no timeout. (default: %d)"),DEFAULT_HTTP_CLIENT_TIMEOUT));
strUsage+=HelpMessageOpt("-rpcclienttimeout=<n>",strprintf(_("Timeout in seconds during HTTP requests, or 0 for no timeout. (default: %d)"),DEFAULT_HTTP_CLIENT_TIMEOUT));
strUsage+=HelpMessageOpt("-stdin",_("Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases)"));
strUsage+=HelpMessageOpt("-stdinrpcpass",strprintf(_("Read RPC password from standard input as a single line. When combined with -stdin, the first line from standard input is used for the RPC password.")));
strUsage+=HelpMessageOpt("-stdin",_("Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases). When combined with -stdinrpcpass, the first line from standard input is used for the RPC password."));
strUsage+=HelpMessageOpt("-rpcwallet=<walletname>",_("Send RPC for non-default wallet on RPC server (argument is wallet filename in bitcoind directory, required if bitcoind/-Qt runs with multiple wallets)"));
strUsage+=HelpMessageOpt("-rpcwallet=<walletname>",_("Send RPC for non-default wallet on RPC server (argument is wallet filename in bitcoind directory, required if bitcoind/-Qt runs with multiple wallets)"));
// Try fall back to cookie-based authentication if no password is provided
// Try fall back to cookie-based authentication if no password is provided
if(!GetAuthCookie(&strRPCUserColonPass)){
if(!GetAuthCookie(&strRPCUserColonPass)){
throwstd::runtime_error(strprintf(
throwstd::runtime_error(strprintf(
_("Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (%s)"),
_("Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (%s)"),