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

Method PrepareRequest

src/bitcoin-cli.cpp:263–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262public:
263 UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override
264 {
265 if (!args.empty()) {
266 throw std::runtime_error("-addrinfo takes no arguments");
267 }
268 UniValue params{RPCConvertValues("getnodeaddresses", std::vector<std::string>{{"0"}})};
269 return JSONRPCRequestObj("getnodeaddresses", params, 1);
270 }
271
272 UniValue ProcessReply(const UniValue& reply) override
273 {

Callers

nothing calls this directly

Calls 3

RPCConvertValuesFunction · 0.85
JSONRPCRequestObjFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected