6 #ifndef BITCOIN_RPC_REQUEST_H 7 #define BITCOIN_RPC_REQUEST_H 49 : id(other.id), strMethod(other.strMethod), params(other.params), fHelp(other.fHelp), URI(other.URI),
50 authUser(other.authUser), peerAddr(other.peerAddr), context(context)
54 void parse(
const UniValue& valRequest);
57 #endif // BITCOIN_RPC_REQUEST_H const util::Ref & context
std::vector< UniValue > JSONRPCProcessBatchReply(const UniValue &in)
Parse JSON-RPC batch reply into a vector.
std::string JSONRPCReply(const UniValue &result, const UniValue &error, const UniValue &id)
void DeleteAuthCookie()
Delete RPC authentication cookie from disk.
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)
JSONRPCRequest(const util::Ref &context)
Type-safe dynamic reference.
bool GenerateAuthCookie(std::string *cookie_out)
Generate a new RPC authentication cookie and write it to disk.
const UniValue NullUniValue
JSONRPCRequest(const JSONRPCRequest &other, const util::Ref &context)
Initializes request information from another request object and the given context.
bool error(const char *fmt, const Args &... args)