MCPcopy Create free account
hub / github.com/ElementsProject/elements / JSONRPCReplyObj

Function JSONRPCReplyObj

src/rpc/request.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls 2

isNullMethod · 0.45
pushKVMethod · 0.45

Tested by

no test coverage detected