MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / JSONRPCReplyObj

Function JSONRPCReplyObj

src/rpc/request.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39UniValue JSONRPCReplyObj(const UniValue &result, const UniValue &error,
40 const UniValue &id) {
41 UniValue reply(UniValue::VOBJ);
42 if (!error.isNull()) {
43 reply.pushKV("result", NullUniValue);
44 } else {
45 reply.pushKV("result", result);
46 }
47 reply.pushKV("error", error);
48 reply.pushKV("id", id);
49 return reply;
50}
51
52std::string JSONRPCReply(const UniValue &result, const UniValue &error,
53 const UniValue &id) {

Callers 5

ProcessReplyMethod · 0.85
ProcessReplyMethod · 0.85
ProcessReplyMethod · 0.85
JSONRPCReplyFunction · 0.85
JSONRPCExecOneFunction · 0.85

Calls 2

isNullMethod · 0.80
pushKVMethod · 0.80

Tested by

no test coverage detected