1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2013 The Bitcoin developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 #ifndef _BITCOINRPC_CLIENT_H_
7 #define _BITCOINRPC_CLIENT_H_ 1
9 #include "json/json_spirit_reader_template.h"
10 #include "json/json_spirit_utils.h"
11 #include "json/json_spirit_writer_template.h"
13 int CommandLineRPC(int argc, char *argv[]);
15 json_spirit::Array RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams);
17 /** Show help message for bitcoin-cli.
18 * The mainProgram argument is used to determine whether to show this message as main program
19 * (and include some common options) or as sub-header of another help message.
21 * @note the argument can be removed once bitcoin-cli functionality is removed from bitcoind
23 std::string HelpMessageCli(bool mainProgram);