Skip to content

Commit f4b7a2f

Browse files
committed
rpc: getrpcinfo docs
1 parent c83442e commit f4b7a2f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/rpc/server.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,20 @@ static UniValue getrpcinfo(const JSONRPCRequest& request)
297297
RPCHelpMan{"getrpcinfo",
298298
"\nReturns details of the RPC server.\n",
299299
{},
300-
RPCResults{},
301-
RPCExamples{""},
300+
RPCResult{
301+
"{\n"
302+
" \"active_commands\" (array) All active commands\n"
303+
" [\n"
304+
" { (object) Information about an active command\n"
305+
" \"method\" (string) The name of the RPC command \n"
306+
" \"duration\" (numeric) The running time in microseconds\n"
307+
" },...\n"
308+
" ]\n"
309+
"}\n"
310+
},
311+
RPCExamples{
312+
HelpExampleCli("getrpcinfo", "")
313+
+ HelpExampleRpc("getrpcinfo", "")},
302314
}.ToString()
303315
);
304316
}

0 commit comments

Comments
 (0)