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

Method PrepareRequest

src/bitcoin-cli.cpp:698–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696class DefaultRequestHandler: public BaseRequestHandler {
697public:
698 UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override
699 {
700 UniValue params;
701 if(gArgs.GetBoolArg("-named", DEFAULT_NAMED)) {
702 params = RPCConvertNamedValues(method, args);
703 } else {
704 params = RPCConvertValues(method, args);
705 }
706 return JSONRPCRequestObj(method, params, 1);
707 }
708
709 UniValue ProcessReply(const UniValue &reply) override
710 {

Callers

nothing calls this directly

Calls 4

RPCConvertNamedValuesFunction · 0.85
RPCConvertValuesFunction · 0.85
JSONRPCRequestObjFunction · 0.85
GetBoolArgMethod · 0.80

Tested by

no test coverage detected