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

Function rpcNestedTest_rpc

src/qt/test/rpcnestedtests.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include <stdexcept>
18
19static RPCHelpMan rpcNestedTest_rpc()
20{
21 return RPCHelpMan{
22 "rpcNestedTest",
23 "echo the passed string(s)",
24 {
25 {"arg1", RPCArg::Type::STR, RPCArg::Optional::OMITTED, ""},
26 {"arg2", RPCArg::Type::STR, RPCArg::Optional::OMITTED, ""},
27 {"arg3", RPCArg::Type::STR, RPCArg::Optional::OMITTED, ""},
28 },
29 RPCResult{RPCResult::Type::ANY, "", ""},
30 RPCExamples{""},
31 [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue {
32 return request.params.write(0, 0);
33 },
34 };
35}
36
37static const CRPCCommand vRPCCommands[] = {
38 {"rpcNestedTest", &rpcNestedTest_rpc},

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected