aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Carman <benthecarman@live.com>2019-04-05 02:04:34 -0500
committerBen Carman <benthecarman@live.com>2019-04-05 02:04:34 -0500
commitf4b7a2f2055fa52d5e02c37bed7b46599b960e2e (patch)
tree15d0cfd3e73bf74eaf859f3c05f9ca942cc8855d
parentc83442e17412b96f00bc29d30763b28184c95f1e (diff)
rpc: getrpcinfo docs
-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 e803fabcc6..276db453cb 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()
);
}