MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CallRPC

Method CallRPC

src/test/fuzz/rpc.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void CallRPC(const std::string& rpc_method, const std::vector<std::string>& arguments)
50 {
51 JSONRPCRequest request;
52 request.context = &m_node;
53 request.strMethod = rpc_method;
54 try {
55 request.params = RPCConvertValues(rpc_method, arguments);
56 } catch (const std::runtime_error&) {
57 return;
58 }
59 tableRPC.execute(request);
60 }
61
62 std::vector<std::string> GetRPCCommands() const
63 {

Callers 1

rpc.cppFile · 0.45

Calls 2

RPCConvertValuesFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected