mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
c3254e6639
mrkd started enforcing the `name -- short description` style of top-level headings somewhere, and was thus failing to build the man-pages. I swapped the title and with the existing short description to make it work again. `mrkd` will automatically infer the section from the filename so no need to put it in the title as well. In addition I removed the "last updated" lines at the bottom since they are out of date at best, and misleading at the worst. If we want to keep them, I'd suggest generating them from the commit that last touched them.
43 lines
1.3 KiB
Groff
43 lines
1.3 KiB
Groff
.TH "LIGHTNING-WAITANYINVOICE" "7" "" "" "lightning-waitanyinvoice"
|
|
.SH NAME
|
|
lightning-waitanyinvoice - Command for waiting for payments
|
|
.SH SYNOPSIS
|
|
|
|
\fBwaitanyinvoice\fR [\fIlastpay_index\fR]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The \fBwaitanyinvoice\fR RPC command waits until an invoice is paid, then
|
|
returns a single entry as per \fBlistinvoice\fR\. It will not return for
|
|
any invoices paid prior to or including the \fIlastpay_index\fR\.
|
|
|
|
|
|
This is usually called iteratively: once with no arguments, then
|
|
repeatedly with the returned \fIpay_index\fR entry\. This ensures that no
|
|
paid invoice is missed\.
|
|
|
|
|
|
The \fIpay_index\fR is a monotonically-increasing number assigned to an
|
|
invoice when it gets paid\. The first valid \fIpay_index\fR is 1; specifying
|
|
\fIlastpay_index\fR of 0 equivalent to not specifying a \fIlastpay_index\fR\.
|
|
Negative \fIlastpay_index\fR is invalid\.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success, an invoice description will be returned as per
|
|
\fBlightning-listinvoice\fR(7): \fIcomplete\fR will always be \fItrue\fR\.
|
|
|
|
.SH AUTHOR
|
|
|
|
Rusty Russell \fI<rusty@rustcorp.com.au\fR> is mainly responsible\.
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fBlightning-waitinvoice\fR(7), \fBlightning-listinvoice\fR(7),
|
|
\fBlightning-delinvoice\fR(7), \fBlightning-invoice\fR(7)\.
|
|
|
|
.SH RESOURCES
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|