MCPcopy Create free account
hub / github.com/LUX-Core/lux / HelpExampleRpc

Function HelpExampleRpc

src/rpcserver.cpp:649–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649std::string HelpExampleRpc(string methodname, string args)
650{
651 int nRpcPort = GetArg("-rpcport", BaseParams().RPCPort());
652 return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", "
653 "\"method\": \"" +
654 methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:" + itostr(nRpcPort) + "/\n";
655}
656
657void RPCRunLater(const std::string& name, boost::function<void(void)> func, int64_t nSeconds)
658{

Callers 15

getnewaddressFunction · 0.85
getaccountaddressFunction · 0.85
getrawchangeaddressFunction · 0.85
setaccountFunction · 0.85
getaccountFunction · 0.85
getaddressesbyaccountFunction · 0.85
sendtoaddressFunction · 0.85
sendtoaddressixFunction · 0.85
listaddressgroupingsFunction · 0.85
listaddressbalancesFunction · 0.85
signmessageFunction · 0.85
getreceivedbyaddressFunction · 0.85

Calls 3

GetArgFunction · 0.85
itostrFunction · 0.85
RPCPortMethod · 0.80

Tested by

no test coverage detected