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

Function HelpExampleCliNamed

src/rpc/util.cpp:176–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176std::string HelpExampleCliNamed(const std::string& methodname, const RPCArgList& args)
177{
178 std::string result = "> bitcoin-cli -named " + methodname;
179 for (const auto& argpair: args) {
180 const auto& value = argpair.second.isStr()
181 ? argpair.second.get_str()
182 : argpair.second.write();
183 result += " " + argpair.first + "=" + ShellQuoteIfNeeded(value);
184 }
185 result += "\n";
186 return result;
187}
188
189std::string HelpExampleRpc(const std::string& methodname, const std::string& args)
190{

Callers 3

restorewalletFunction · 0.85
createwalletFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

ShellQuoteIfNeededFunction · 0.85
isStrMethod · 0.80
writeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68