aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorBen Carman <benthecarman@live.com>2019-04-05 02:04:34 -0500
committerBen Carman <benthecarman@live.com>2019-04-11 00:42:49 -0500
commit60d46219754692355aef719681a7d80ec38035bc (patch)
treea378998c3b31f5d7552db43cd52cf3f2bd167e7c /src/rpc/server.cpp
parent164082c822b0de0a66ff702397c1588a8dc3a257 (diff)
downloadbitcoin-60d46219754692355aef719681a7d80ec38035bc.tar.xz
rpc: getrpcinfo docs
Github-Pull: #15754 Rebased-From: f4b7a2f2055fa52d5e02c37bed7b46599b960e2e
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 cd90573da0..6ebde86b56 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -296,8 +296,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()
);
}