MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / HelpExampleCliNamed

Function HelpExampleCliNamed

src/rpc/util.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168std::string HelpExampleCliNamed(const std::string &methodname,
169 const RPCArgList &args) {
170 std::string result = "> bitcoin-cli -named " + methodname;
171 for (const auto &argpair : args) {
172 const auto &value = argpair.second.isStr() ? argpair.second.get_str()
173 : argpair.second.write();
174 result += " " + argpair.first + "=" + ShellQuoteIfNeeded(value);
175 }
176 result += "\n";
177 return result;
178}
179
180std::string HelpExampleRpc(const std::string &methodname,
181 const std::string &args) {

Callers 3

createwalletFunction · 0.85
restorewalletFunction · 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