20#ifndef RIPPLE_NET_RPCCALL_H_INCLUDED
21#define RIPPLE_NET_RPCCALL_H_INCLUDED
23#include <xrpld/core/Config.h>
24#include <xrpl/basics/Log.h>
25#include <xrpl/json/json_value.h>
26#include <boost/asio/io_service.hpp>
52 boost::asio::io_service& io_service,
72 unsigned int apiVersion,
83 unsigned int apiVersion,
A generic endpoint for log messages.
int fromCommandLine(Config const &config, const std::vector< std::string > &vCmd, Logs &logs)
void fromNetwork(boost::asio::io_service &io_service, std::string const &strIp, const std::uint16_t iPort, std::string const &strUsername, std::string const &strPassword, std::string const &strPath, std::string const &strMethod, Json::Value const &jvParams, const bool bSSL, const bool 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)