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

Function JSONRPCExecBatch

src/rpc/server.cpp:382–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382std::string JSONRPCExecBatch(const JSONRPCRequest& jreq, const UniValue& vReq)
383{
384 UniValue ret(UniValue::VARR);
385 for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++)
386 ret.push_back(JSONRPCExecOne(jreq, vReq[reqIdx]));
387
388 return ret.write() + "\n";
389}
390
391/**
392 * Process named arguments into a vector of positional arguments, based on the

Callers 1

HTTPReq_JSONRPCFunction · 0.85

Calls 4

JSONRPCExecOneFunction · 0.85
sizeMethod · 0.45
push_backMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected