5 #ifndef BITCOIN_RPC_REQUEST_H 6 #define BITCOIN_RPC_REQUEST_H 52 : id(other.id), strMethod(other.strMethod), params(other.params),
53 fHelp(other.fHelp), URI(other.URI), authUser(other.authUser),
54 peerAddr(other.peerAddr), context(contextIn) {}
56 void parse(
const UniValue &valRequest);
59 #endif // BITCOIN_RPC_REQUEST_H const util::Ref & context
JSONRPCRequest(const util::Ref &contextIn)
std::string JSONRPCReply(const UniValue &result, const UniValue &error, const UniValue &id)
void DeleteAuthCookie()
Delete RPC authentication cookie from disk.
JSONRPCRequest(const JSONRPCRequest &other, const util::Ref &contextIn)
Initializes request information from another request object and the given context.
UniValue JSONRPCRequestObj(const std::string &strMethod, const UniValue ¶ms, const UniValue &id)
JSON-RPC protocol.
bool GetAuthCookie(std::string *cookie_out)
Read the RPC authentication cookie from disk.
UniValue JSONRPCError(int code, const std::string &message)
UniValue JSONRPCReplyObj(const UniValue &result, const UniValue &error, const UniValue &id)
Type-safe dynamic reference.
bool GenerateAuthCookie(std::string *cookie_out)
Generate a new RPC authentication cookie and write it to disk.
const UniValue NullUniValue
std::vector< UniValue > JSONRPCProcessBatchReply(const UniValue &in, size_t num)
Parse JSON-RPC batch reply into a vector.
bool error(const char *fmt, const Args &... args)