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

Function JSONRPCReply

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

Source from the content-addressed store, hash-verified

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

Callers 2

JSONErrorReplyFunction · 0.85
HTTPReq_JSONRPCFunction · 0.85

Calls 2

JSONRPCReplyObjFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected