MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / JSONRPCRequestObj

Function JSONRPCRequestObj

src/rpc/protocol.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85

Calls 1

pushKVMethod · 0.45

Tested by

no test coverage detected