2020-08-31 14:42:28 +02:00
.TH "LIGHTNING-HELP" "7" "" "" "lightning-help"
.SH NAME
lightning-help - Command to return all information about RPC commands\.
.SH SYNOPSIS
2020-09-07 12:46:28 +02:00
\fB help\fR [\fI command\\ \fR ]
2020-08-31 14:42:28 +02:00
.SH DESCRIPTION
2020-09-07 12:46:28 +02:00
The \fB help\fR is a RPC command which is possible consult all information about the RPC commands, or a specific command if \fI command\fR is given\.
Note that the \fB lightning-cli\fR (1) tool will prefer to list a man page when a
specific \fI command\fR is specified, and will only return the JSON if the man
page is not found\.
2020-08-31 14:42:28 +02:00
.SH EXAMPLE JSON REQUEST
.nf
.RS
{
"id": 82,
"method": "help",
"params": {}
}
.RE
.fi
.SH RETURN VALUE
2021-06-16 03:05:17 +02:00
On success, an object is returned, containing:
2020-08-31 14:42:28 +02:00
.RS
.IP \[ bu]
2021-06-16 03:05:17 +02:00
\fB help\fR (array of objects):
.RS
.IP \[ bu]
\fB command\fR (string): the command
2020-08-31 14:42:28 +02:00
.IP \[ bu]
2021-06-16 03:05:17 +02:00
\fB category\fR (string): the category for this command (useful for grouping)
2020-08-31 14:42:28 +02:00
.IP \[ bu]
2021-06-16 03:05:17 +02:00
\fB description\fR (string): a one-line description of the purpose of this command
2020-08-31 14:42:28 +02:00
.IP \[ bu]
2021-06-16 03:05:17 +02:00
\fB verbose\fR (string): a full description of this command (including whether it's deprecated)
.RE
2020-08-31 14:42:28 +02:00
.RE
On failure, one of the following error codes may be returned:
.RS
.IP \[ bu]
-32602: Error in given parameters\.
.RE
.SH EXAMPLE JSON RESPONSE
.nf
.RS
{
"help": [
{
"command": "autocleaninvoice [cycle_seconds] [expired_by]",
"category": "plugin",
"description": "Set up autoclean of expired invoices. ",
"verbose": "Perform cleanup every {cycle_seconds} (default 3600), or disable autoclean if 0. Clean up expired invoices that have expired for {expired_by} seconds (default 86400). "
}
]
}
.RE
.fi
.SH AUTHOR
Vincenzo Palazzo \fI <vincenzo.palazzo@protonmail.com\fR > wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command\.
.SH RESOURCES
Main web site: \fI https://github.com/ElementsProject/lightning\fR
2021-06-16 03:08:17 +02:00
\" SHA256STAMP:69bc1cd80da8ce53c2f258fdcd5b8d0909478629d1d3ceeead0d6a3052484f2e