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

Function JSONRPCRequestObj

src/rpc/request.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 */
28
29UniValue JSONRPCRequestObj(const std::string& strMethod, const UniValue& params, const UniValue& id)
30{
31 UniValue request(UniValue::VOBJ);
32 request.pushKV("method", strMethod);
33 request.pushKV("params", params);
34 request.pushKV("id", id);
35 return request;
36}
37
38UniValue JSONRPCReplyObj(const UniValue& result, const UniValue& error, const UniValue& id)
39{

Callers 6

PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
CallMainChainRPCFunction · 0.85

Calls 1

pushKVMethod · 0.45

Tested by

no test coverage detected