2013-11-20 10:18:57 -03:00
|
|
|
// Copyright (c) 2010 Satoshi Nakamoto
|
2018-07-26 18:36:45 -04:00
|
|
|
// Copyright (c) 2009-2018 The Bitcoin Core developers
|
2014-11-19 23:19:29 -03:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-20 10:18:57 -03:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-03-22 11:19:44 -03:00
|
|
|
#ifndef BITCOIN_RPC_CLIENT_H
|
|
|
|
#define BITCOIN_RPC_CLIENT_H
|
2013-11-20 10:18:57 -03:00
|
|
|
|
2015-09-04 11:11:34 -03:00
|
|
|
#include <univalue.h>
|
2013-11-20 10:18:57 -03:00
|
|
|
|
2016-11-22 10:56:29 -03:00
|
|
|
/** Convert positional arguments to command-specific RPC representation */
|
2015-05-13 16:29:19 -03:00
|
|
|
UniValue RPCConvertValues(const std::string& strMethod, const std::vector<std::string>& strParams);
|
2016-11-22 10:56:29 -03:00
|
|
|
|
|
|
|
/** Convert named arguments to command-specific RPC representation */
|
|
|
|
UniValue RPCConvertNamedValues(const std::string& strMethod, const std::vector<std::string>& strParams);
|
|
|
|
|
2015-06-04 05:31:22 -03:00
|
|
|
/** Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null)
|
|
|
|
* as well as objects and arrays.
|
|
|
|
*/
|
|
|
|
UniValue ParseNonRFCJSONValue(const std::string& strVal);
|
2013-11-20 10:18:57 -03:00
|
|
|
|
2018-03-22 11:19:44 -03:00
|
|
|
#endif // BITCOIN_RPC_CLIENT_H
|