MCPcopy Create free account
hub / github.com/LUX-Core/lux / JSONRPCReply

Function JSONRPCReply

src/rpcprotocol.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52string JSONRPCReply(const UniValue& result, const UniValue& error, const UniValue& id)
53{
54 UniValue reply = JSONRPCReplyObj(result, error, id);
55 return reply.write() + "\n";
56}
57
58UniValue JSONRPCError(int code, const string& message)
59{

Callers 2

JSONErrorReplyFunction · 0.85
HTTPReq_JSONRPCFunction · 0.85

Calls 2

JSONRPCReplyObjFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected