Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
client.h
Go to the documentation of this file.
1// Copyright (c) 2010 Satoshi Nakamoto
2// Copyright (c) 2009-2016 The Bitcoin Core developers
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef BITCOIN_RPC_CLIENT_H
7#define BITCOIN_RPC_CLIENT_H
8
9#include <univalue.h>
10
11#include <string>
12#include <string_view>
13
15UniValue RPCConvertValues(const std::string &strMethod,
16 const std::vector<std::string> &strParams);
17
19UniValue RPCConvertNamedValues(const std::string &strMethod,
20 const std::vector<std::string> &strParams);
21
22#endif // BITCOIN_RPC_CLIENT_H
UniValue RPCConvertValues(const std::string &strMethod, const std::vector< std::string > &strParams)
Convert positional arguments to command-specific RPC representation.
Definition client.cpp:272
UniValue RPCConvertNamedValues(const std::string &strMethod, const std::vector< std::string > &strParams)
Convert named arguments to command-specific RPC representation.
Definition client.cpp:284
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85