2016-09-06 09:17:41 +02:00
'\" t
2017-01-23 00:58:32 +01:00
. \" Title: lightning-waitanyinvoice
2016-09-06 09:17:41 +02:00
. \" Author: [see the "AUTHOR" section]
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
2017-01-23 00:58:32 +01:00
. \" Date: 01/23/2017
2016-09-06 09:17:41 +02:00
. \" Manual: \ \&
. \" Source: \ \&
. \" Language: English
. \"
2017-01-23 00:58:32 +01:00
.TH "LIGHTNING\-WAITANYIN" "7" "01/23/2017" "\ \&" "\ \&"
2016-09-06 09:17:41 +02:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
2017-01-23 00:58:32 +01:00
lightning-waitanyinvoice \- Protocol for waiting for payments\& .
2016-09-06 09:17:41 +02:00
.SH "SYNOPSIS"
.sp
2017-01-23 00:58:32 +01:00
\fB waitanyinvoice\fR [\fI lastlabel\fR ]
2016-09-06 09:17:41 +02:00
.SH "DESCRIPTION"
.sp
2017-01-23 00:58:32 +01:00
The \fB waitanyinvoice\fR RPC command waits until an invoice is paid, then returns a single entry as per \fB listinvoice\fR \& . It will not return for any invoices paid prior to or including \fI lastlabel\fR \& .
2016-09-06 09:17:41 +02:00
.sp
This is usually called iteratively: once with no arguments, then repeatedly with the returned \fI label\fR entry\& . This ensures that no paid invoice is missed\& .
.SH "RETURN VALUE"
.sp
On success, the \fI rhash\fR , \fI label\fR , and \fI msatoshi\fR will be returned\& .
.SH "AUTHOR"
.sp
Rusty Russell <rusty@rustcorp\& .com\& .au> is mainly responsible\& .
.SH "SEE ALSO"
.sp
2017-01-23 01:09:43 +01:00
lighting\- waitinvoice(7), lightning\- listinvoice(7), lightning\- delinvoice(7), lightning\- invoice(7)\& .
2016-09-06 09:17:41 +02:00
.SH "RESOURCES"
.sp
Main web site: https://github\& .com/ElementsProject/lightning