2013-11-20 14:18:57 +01:00
|
|
|
// Copyright (c) 2010 Satoshi Nakamoto
|
2015-12-13 14:51:43 +01:00
|
|
|
// Copyright (c) 2009-2015 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.
|
|
|
|
|
2018-04-02 00:30:17 +02:00
|
|
|
#ifndef BITCOIN_RPC_CLIENT_H
|
|
|
|
#define BITCOIN_RPC_CLIENT_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
|
|
|
|
2017-01-10 13:52:49 +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);
|
2017-01-10 13:52:49 +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
|
|
|
|
2018-04-02 00:30:17 +02:00
|
|
|
#endif // BITCOIN_RPC_CLIENT_H
|