MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / JSONRPCReplyObj

Function JSONRPCReplyObj

src/rpcprotocol.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.push_back(Pair("result", NullUniValue));
43 else
44 reply.push_back(Pair("result", result));
45 reply.push_back(Pair("error", error));
46 reply.push_back(Pair("id", id));
47 return reply;
48}
49
50string JSONRPCReply(const UniValue& result, const UniValue& error, const UniValue& id)
51{

Callers 2

JSONRPCExecOneFunction · 0.85
JSONRPCReplyFunction · 0.85

Calls 3

PairFunction · 0.85
isNullMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected