20#ifndef RIPPLE_NET_RPCCALL_H_INCLUDED
21#define RIPPLE_NET_RPCCALL_H_INCLUDED
23#include <xrpld/core/Config.h>
25#include <xrpl/basics/Log.h>
26#include <xrpl/json/json_value.h>
28#include <boost/asio/io_service.hpp>
54 boost::asio::io_service& io_service,
74 unsigned int apiVersion,
85 unsigned int apiVersion,
A generic endpoint for log messages.
int fromCommandLine(Config const &config, std::vector< std::string > const &vCmd, Logs &logs)
void fromNetwork(boost::asio::io_service &io_service, std::string const &strIp, std::uint16_t const iPort, std::string const &strUsername, std::string const &strPassword, std::string const &strPath, std::string const &strMethod, Json::Value const &jvParams, bool const bSSL, bool const quiet, Logs &logs, std::function< void(Json::Value const &jvInput)> callbackFuncP, std::unordered_map< std::string, std::string > headers)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::pair< int, Json::Value > rpcClient(std::vector< std::string > const &args, Config const &config, Logs &logs, unsigned int apiVersion, std::unordered_map< std::string, std::string > const &headers)
Internal invocation of RPC client.
Json::Value rpcCmdToJson(std::vector< std::string > const &args, Json::Value &retParams, unsigned int apiVersion, beast::Journal j)