From f4b7a2f2055fa52d5e02c37bed7b46599b960e2e Mon Sep 17 00:00:00 2001 From: Ben Carman Date: Fri, 5 Apr 2019 02:04:34 -0500 Subject: rpc: getrpcinfo docs --- src/rpc/server.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/rpc/server.cpp') 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() ); } -- cgit v1.2.3