MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / help

Function help

src/rpc/server.cpp:209–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209UniValue help(const JSONRPCRequest& jsonRequest)
210{
211 if (jsonRequest.fHelp || jsonRequest.params.size() > 1)
212 throw std::runtime_error(
213 "help ( \"command\" )\n"
214 "\nList all commands, or get help for a specified command.\n"
215 "\nArguments:\n"
216 "1. \"command\" (string, optional) The command to get help on\n"
217 "\nResult:\n"
218 "\"text\" (string) The help text\n"
219 );
220
221 std::string strCommand;
222 if (jsonRequest.params.size() > 0)
223 strCommand = jsonRequest.params[0].get_str();
224
225 return tableRPC.help(strCommand, jsonRequest);
226}
227
228
229UniValue stop(const JSONRPCRequest& jsonRequest)

Callers

nothing calls this directly

Calls 2

helpMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected