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

Function HelpExampleCliNamed

src/rpc/util.cpp:188–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188std::string HelpExampleCliNamed(const std::string& methodname, const RPCArgList& args)
189{
190 std::string result = "> bitcoin-cli -named " + methodname;
191 for (const auto& argpair: args) {
192 const auto& value = argpair.second.isStr()
193 ? argpair.second.get_str()
194 : argpair.second.write();
195 result += " " + argpair.first + "=" + ShellQuoteIfNeeded(value);
196 }
197 result += "\n";
198 return result;
199}
200
201std::string HelpExampleRpc(const std::string& methodname, const std::string& args)
202{

Callers 5

restorewalletFunction · 0.85
createwalletFunction · 0.85
gethdkeysFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
gettxspendingprevoutFunction · 0.85

Calls 3

ShellQuoteIfNeededFunction · 0.85
isStrMethod · 0.80
writeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68