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

Method PrepareRequest

src/bitcoin-cli.cpp:782–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780/** Process default single requests */
781struct DefaultRequestHandler : BaseRequestHandler {
782 UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override
783 {
784 UniValue params;
785 if(gArgs.GetBoolArg("-named", DEFAULT_NAMED)) {
786 params = RPCConvertNamedValues(method, args);
787 } else {
788 params = RPCConvertValues(method, args);
789 }
790 UniValue id{UniValue::VSTR, gArgs.GetArg("-rpcid", DEFAULT_RPC_REQ_ID)};
791 return JSONRPCRequestObj(method, params, id);
792 }
793
794 UniValue ProcessReply(const UniValue &reply) override
795 {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected