MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / JSONRPCRequestObj

Function JSONRPCRequestObj

src/rpc/request.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 */
40
41UniValue JSONRPCRequestObj(const std::string& strMethod, const UniValue& params, const UniValue& id)
42{
43 UniValue request(UniValue::VOBJ);
44 request.pushKV("method", strMethod);
45 request.pushKV("params", params);
46 request.pushKV("id", id);
47 request.pushKV("jsonrpc", "2.0");
48 return request;
49}
50
51UniValue JSONRPCReplyObj(UniValue result, UniValue error, std::optional<UniValue> id, JSONRPCVersion jsonrpc_version)
52{

Callers 5

PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85

Calls 1

pushKVMethod · 0.80

Tested by

no test coverage detected