2019-08-10 02:12:44 +02:00
|
|
|
.TH "LIGHTNING-LISTPAYS" "7" "" "" "lightning-listpays"
|
|
|
|
.SH NAME
|
|
|
|
lightning-listpays - Command for querying payment status
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2020-07-29 10:48:47 +02:00
|
|
|
\fBlistpays\fR [bolt11] [payment_hash]
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
The \fBlistpay\fR RPC command gets the status of all \fIpay\fR commands, or a
|
2020-07-29 10:48:47 +02:00
|
|
|
single one if either \fIbolt11\fR or \fIpayment_hash\fR was specified\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH RETURN VALUE
|
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
On success, an object containing \fBpays\fR is returned\. It is an array of objects, where each object contains:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RS
|
|
|
|
.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): status of the payment (one of "pending", "failed", "complete")
|
|
|
|
.IP \[bu]
|
|
|
|
\fBcreated_at\fR (u64): the UNIX timestamp showing when this payment was initiated
|
|
|
|
.IP \[bu]
|
|
|
|
\fBdestination\fR (pubkey, optional): the final destination of the payment if known
|
|
|
|
.IP \[bu]
|
|
|
|
\fBlabel\fR (string, optional): the label, if given to sendpay
|
|
|
|
.IP \[bu]
|
|
|
|
\fBbolt11\fR (string, optional): the bolt11 string (if pay supplied one)
|
|
|
|
.IP \[bu]
|
|
|
|
\fBbolt12\fR (string, optional): the bolt12 string (if supplied for pay: \fBexperimental-offers\fR only)\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RE
|
2020-07-29 10:48:47 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
If \fBstatus\fR is "pending" or "complete":
|
2020-07-29 10:48:47 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBamount_sent_msat\fR (msat): the amount we actually sent, including fees
|
|
|
|
.IP \[bu]
|
|
|
|
\fBamount_msat\fR (msat, optional): the amount the destination received, if known
|
2021-01-14 04:36:59 +01:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RE
|
2021-01-14 04:36:59 +01:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
If \fBstatus\fR is "complete":
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBpreimage\fR (hex): proof of payment (always 64 characters)
|
|
|
|
.IP \[bu]
|
|
|
|
\fBnumber_of_parts\fR (u64, optional): the number of parts for a successful payment (only if more than one)\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
If \fBstatus\fR is "failed":
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBerroronion\fR (hex, optional): the error onion returned on failure, if any\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
.RE
|
2021-05-31 04:39:27 +02:00
|
|
|
|
|
|
|
The returned array is ordered by increasing \fBcreated_at\fR fields\.
|
|
|
|
|
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-pay\fR(7), \fBlightning-paystatus\fR(7), \fBlightning-listsendpays\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-06-16 03:08:17 +02:00
|
|
|
\" SHA256STAMP:9b593ed02c10b34ae6f36f91963da0a244df0c3963aaa990e7477008fd3af18d
|