2019-08-31 14:30:56 +02:00
|
|
|
|
lightning-listpays -- Command for querying payment status
|
|
|
|
|
=========================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
|
--------
|
|
|
|
|
|
2020-07-29 10:48:47 +02:00
|
|
|
|
**listpays** \[bolt11\] \[payment_hash\]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
The **listpay** RPC command gets the status of all *pay* commands, or a
|
2020-07-29 10:48:47 +02:00
|
|
|
|
single one if either *bolt11* or *payment_hash* was specified.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
On success, an array of objects is returned. Each object contains:
|
|
|
|
|
|
|
|
|
|
*bolt11*
|
2020-07-29 10:48:47 +02:00
|
|
|
|
the *bolt11* invoice if provided to `pay`.
|
|
|
|
|
|
|
|
|
|
*payment_hash*
|
|
|
|
|
the *payment_hash* of the payment.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
*status*
|
|
|
|
|
one of *complete*, *failed* or *pending*.
|
|
|
|
|
|
|
|
|
|
*payment\_preimage*
|
2020-07-29 10:48:47 +02:00
|
|
|
|
if *status* is *complete*.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
*label*
|
2020-07-29 10:48:47 +02:00
|
|
|
|
optional *label*, if provided to *pay* or *sendonion*.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
*amount\_sent\_msat*
|
|
|
|
|
total amount sent, in "NNNmsat" format.
|
|
|
|
|
|
|
|
|
|
For old payments (pre-0.7) we didn’t save the *bolt11* string, so in its
|
|
|
|
|
place are three other fields:
|
|
|
|
|
|
|
|
|
|
*payment\_hash*
|
|
|
|
|
the hash of the *payment\_preimage* which will prove payment.
|
|
|
|
|
|
|
|
|
|
*destination*
|
|
|
|
|
the final destination of the payment.
|
|
|
|
|
|
|
|
|
|
*amount\_msat*
|
|
|
|
|
the amount the destination received, in "NNNmsat" format.
|
|
|
|
|
|
|
|
|
|
These three can all be extracted from *bolt11*, hence are obsolete.
|
|
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible.
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
lightning-pay(7), lightning-paystatus(7), lightning-listsendpays(7).
|
|
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
|
---------
|
|
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
|