2013-11-20 14:18:57 +01:00
|
|
|
// Copyright (c) 2010 Satoshi Nakamoto
|
2016-12-31 19:01:21 +01:00
|
|
|
// Copyright (c) 2009-2016 The Bitcoin Core developers
|
2014-11-20 03:19:29 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-20 14:18:57 +01:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_RPCCLIENT_H
|
|
|
|
#define BITCOIN_RPCCLIENT_H
|
2013-11-20 14:18:57 +01:00
|
|
|
|
2015-09-04 16:11:34 +02:00
|
|
|
#include <univalue.h>
|
2013-11-20 14:18:57 +01:00
|
|
|
|
2016-11-22 14:56:29 +01:00
|
|
|
/** Convert positional arguments to command-specific RPC representation */
|
2015-05-13 21:29:19 +02:00
|
|
|
UniValue RPCConvertValues(const std::string& strMethod, const std::vector<std::string>& strParams);
|
2016-11-22 14:56:29 +01:00
|
|
|
|
|
|
|
/** Convert named arguments to command-specific RPC representation */
|
|
|
|
UniValue RPCConvertNamedValues(const std::string& strMethod, const std::vector<std::string>& strParams);
|
|
|
|
|
2015-06-04 10:31:22 +02: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 14:18:57 +01:00
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_RPCCLIENT_H
|