aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorBen Carman <[email protected]>2019-04-05 02:04:34 -0500
committerBen Carman <[email protected]>2019-04-05 02:04:34 -0500
commitf4b7a2f2055fa52d5e02c37bed7b46599b960e2e (patch)
tree15d0cfd3e73bf74eaf859f3c05f9ca942cc8855d /src/rpc/server.cpp
parentMerge #15654: net: Remove unused unsanitized user agent string CNode::strSubVer (diff)
downloaddiscoin-f4b7a2f2055fa52d5e02c37bed7b46599b960e2e.tar.xz
discoin-f4b7a2f2055fa52d5e02c37bed7b46599b960e2e.zip
rpc: getrpcinfo docs
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index e803fabcc..276db453c 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -297,8 +297,20 @@ static UniValue getrpcinfo(const JSONRPCRequest& request)
RPCHelpMan{"getrpcinfo",
"\nReturns details of the RPC server.\n",
{},
- RPCResults{},
- RPCExamples{""},
+ RPCResult{
+ "{\n"
+ " \"active_commands\" (array) All active commands\n"
+ " [\n"
+ " { (object) Information about an active command\n"
+ " \"method\" (string) The name of the RPC command \n"
+ " \"duration\" (numeric) The running time in microseconds\n"
+ " },...\n"
+ " ]\n"
+ "}\n"
+ },
+ RPCExamples{
+ HelpExampleCli("getrpcinfo", "")
+ + HelpExampleRpc("getrpcinfo", "")},
}.ToString()
);
}