MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / JSONRPCReply

Function JSONRPCReply

src/rpc/core/rpcprotocol.cpp:236–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236string JSONRPCReply(const Value& result, const Value& error, const Value& id) {
237 Object reply = JSONRPCReplyObj(result, error, id);
238 return write_string(Value(reply), false) + "\n";
239}
240
241Object JSONRPCError(int code, const string& message) {
242 Object error;

Callers 2

ErrorReplyFunction · 0.85
JsonRPCHandlerFunction · 0.85

Calls 3

JSONRPCReplyObjFunction · 0.85
write_stringFunction · 0.85
ValueFunction · 0.85

Tested by

no test coverage detected