6#ifndef BITCOIN_RPC_REQUEST_H
7#define BITCOIN_RPC_REQUEST_H
27bool GenerateAuthCookie(std::string* cookie_out, std::optional<fs::perms> cookie_perms=std::nullopt);
JSONRPCVersion m_json_version
enum JSONRPCRequest::Mode mode
bool IsNotification() const
void parse(const UniValue &valRequest)
std::vector< UniValue > JSONRPCProcessBatchReply(const UniValue &in)
Parse JSON-RPC batch reply into a vector.
bool GetAuthCookie(std::string *cookie_out)
Read the RPC authentication cookie from disk.
UniValue JSONRPCRequestObj(const std::string &strMethod, const UniValue ¶ms, const UniValue &id)
JSON-RPC 2.0 request, only used in bitcoin-cli.
UniValue JSONRPCError(int code, const std::string &message)
UniValue JSONRPCReplyObj(UniValue result, UniValue error, std::optional< UniValue > id, JSONRPCVersion jsonrpc_version)
void DeleteAuthCookie()
Delete RPC authentication cookie from disk.
bool GenerateAuthCookie(std::string *cookie_out, std::optional< fs::perms > cookie_perms=std::nullopt)
Generate a new RPC authentication cookie and write it to disk.