diff options
author | Ben Carman <benthecarman@live.com> | 2019-04-05 02:04:34 -0500 |
---|---|---|
committer | Ben Carman <benthecarman@live.com> | 2019-04-11 00:42:49 -0500 |
commit | 60d46219754692355aef719681a7d80ec38035bc (patch) | |
tree | a378998c3b31f5d7552db43cd52cf3f2bd167e7c | |
parent | 164082c822b0de0a66ff702397c1588a8dc3a257 (diff) | |
download | bitcoin-60d46219754692355aef719681a7d80ec38035bc.tar.xz |
rpc: getrpcinfo docs
Github-Pull: #15754
Rebased-From: f4b7a2f2055fa52d5e02c37bed7b46599b960e2e
-rw-r--r-- | src/rpc/server.cpp | 16 |
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() ); } |