2019-08-10 02:12:44 +02:00
|
|
|
.TH "LIGHTNING-LISTINVOICES" "7" "" "" "lightning-listinvoices"
|
|
|
|
.SH NAME
|
|
|
|
lightning-listinvoices - Command for querying invoice status
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2021-07-02 02:11:35 +02:00
|
|
|
\fBlistinvoices\fR [\fIlabel\fR] [\fIinvstring\fR] [\fIpayment_hash\fR] [\fIoffer_id\fR]
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
The \fBlistinvoices\fR RPC command gets the status of a specific invoice,
|
|
|
|
if it exists, or the status of all invoices if given no argument\.
|
|
|
|
|
2021-01-05 18:58:13 +01:00
|
|
|
|
|
|
|
A specific invoice can be queried by providing either the \fBlabel\fR
|
|
|
|
provided when creating the invoice, the \fBinvstring\fR string representing
|
2021-07-02 02:11:35 +02:00
|
|
|
the invoice, the \fBpayment_hash\fR of the invoice, or the local \fBoffer_id\fR
|
|
|
|
this invoice was issued for\. Only one of the query parameters can be used at once\.
|
2021-01-05 18:58:13 +01:00
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH RETURN VALUE
|
|
|
|
|
2021-06-16 03:07:17 +02:00
|
|
|
On success, an object containing \fBinvoices\fR is returned\. It is an array of objects, where each object contains:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-06-16 03:07:17 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBlabel\fR (string): unique label supplied at invoice creation
|
|
|
|
.IP \[bu]
|
|
|
|
\fBdescription\fR (string): description used in the invoice
|
|
|
|
.IP \[bu]
|
|
|
|
\fBpayment_hash\fR (hex): the hash of the \fIpayment_preimage\fR which will prove payment (always 64 characters)
|
|
|
|
.IP \[bu]
|
|
|
|
\fBstatus\fR (string): Whether it's paid, unpaid or unpayable (one of "unpaid", "paid", "expired")
|
|
|
|
.IP \[bu]
|
|
|
|
\fBexpires_at\fR (u64): UNIX timestamp of when it will become / became unpayable
|
|
|
|
.IP \[bu]
|
|
|
|
\fBamount_msat\fR (msat, optional): the amount required to pay this invoice
|
|
|
|
.IP \[bu]
|
|
|
|
\fBbolt11\fR (string, optional): the BOLT11 string (always present unless \fIbolt12\fR is)
|
|
|
|
.IP \[bu]
|
|
|
|
\fBbolt12\fR (string, optional): the BOLT12 string (always present unless \fIbolt11\fR is)
|
2021-07-01 06:28:56 +02:00
|
|
|
.IP \[bu]
|
|
|
|
\fBlocal_offer_id\fR (hex, optional): the \fIid\fR of our offer which created this invoice (\fBexperimental-offers\fR only)\. (always 64 characters)
|
2021-07-02 02:11:35 +02:00
|
|
|
.IP \[bu]
|
|
|
|
\fBpayer_note\fR (string, optional): the optional \fIpayer_note\fR from invoice_request which created this invoice (\fBexperimental-offers\fR only)\.
|
2021-06-16 03:07:17 +02:00
|
|
|
|
|
|
|
.RE
|
|
|
|
|
|
|
|
If \fBstatus\fR is "paid":
|
|
|
|
|
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBpay_index\fR (u64): Unique incrementing index for this payment
|
|
|
|
.IP \[bu]
|
|
|
|
\fBamount_received_msat\fR (msat): the amount actually received (could be slightly greater than \fIamount_msat\fR, since clients may overpay)
|
|
|
|
.IP \[bu]
|
|
|
|
\fBpaid_at\fR (u64): UNIX timestamp of when it was paid
|
|
|
|
.IP \[bu]
|
|
|
|
\fBpayment_preimage\fR (hex): proof of payment (always 64 characters)
|
|
|
|
|
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH AUTHOR
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
Rusty Russell \fI<rusty@rustcorp.com.au\fR> is mainly responsible\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
|
|
|
\fBlightning-waitinvoice\fR(7), \fBlightning-delinvoice\fR(7), \fBlightning-invoice\fR(7)\.
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-07-02 02:11:35 +02:00
|
|
|
\" SHA256STAMP:37d1f6f0b6160b9aa4944f730bec6b04469a9f9a293b59cf8f6663d37073da9c
|