Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Functions | Variables
client.cpp File Reference
#include <common/args.h>
#include <rpc/client.h>
#include <tinyformat.h>
#include <set>
#include <stdint.h>
#include <string>
#include <string_view>
Include dependency graph for client.cpp:

Go to the source code of this file.

Classes

class  CRPCConvertParam
 
class  CRPCConvertTable
 

Functions

static UniValue Parse (std::string_view raw)
 Parse string to UniValue or throw runtime_error if string contains invalid JSON. More...
 
UniValue RPCConvertValues (const std::string &strMethod, const std::vector< std::string > &strParams)
 Convert positional arguments to command-specific RPC representation. More...
 
UniValue RPCConvertNamedValues (const std::string &strMethod, const std::vector< std::string > &strParams)
 Convert named arguments to command-specific RPC representation. More...
 

Variables

static const CRPCConvertParam vRPCConvertParams []
 Specify a (method, idx, name) here if the argument is a non-string RPC argument and needs to be converted from JSON. More...
 
static CRPCConvertTable rpcCvtTable
 

Function Documentation

◆ Parse()

static UniValue Parse ( std::string_view  raw)
static

Parse string to UniValue or throw runtime_error if string contains invalid JSON.

Definition at line 318 of file client.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RPCConvertNamedValues()

UniValue RPCConvertNamedValues ( const std::string &  strMethod,
const std::vector< std::string > &  strParams 
)

Convert named arguments to command-specific RPC representation.

Definition at line 369 of file client.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RPCConvertValues()

UniValue RPCConvertValues ( const std::string &  strMethod,
const std::vector< std::string > &  strParams 
)

Convert positional arguments to command-specific RPC representation.

Definition at line 357 of file client.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ rpcCvtTable

CRPCConvertTable rpcCvtTable
static

Definition at line 355 of file client.cpp.

◆ vRPCConvertParams

const CRPCConvertParam vRPCConvertParams[]
static

Specify a (method, idx, name) here if the argument is a non-string RPC argument and needs to be converted from JSON.

Note
Parameter indexes start from 0.

Definition at line 30 of file client.cpp.