2019-08-31 13:30:56 +01:00
|
|
|
lightning-listpays -- Command for querying payment status
|
|
|
|
=========================================================
|
2019-08-10 00:54:18 +01:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-11-11 01:44:56 +00:00
|
|
|
**listpays** [*bolt11*] [*payment\_hash*] [*status*]
|
2019-08-10 00:54:18 +01:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **listpay** RPC command gets the status of all *pay* commands, or a
|
2022-11-11 01:44:56 +00:00
|
|
|
single one if either *bolt11* or *payment\_hash* was specified.
|
2021-09-06 11:08:07 +01:00
|
|
|
It is possible filter the payments also by *status*.
|
2019-08-10 00:54:18 +01:00
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-05-26 06:49:01 +01:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object containing **pays** is returned. It is an array of objects, where each object contains:
|
2022-09-05 22:33:09 +01:00
|
|
|
|
2023-01-30 06:24:17 +00:00
|
|
|
- **payment\_hash** (hash): the hash of the *payment\_preimage* which will prove payment
|
2021-05-26 06:49:01 +01:00
|
|
|
- **status** (string): status of the payment (one of "pending", "failed", "complete")
|
2022-09-05 22:45:06 +01:00
|
|
|
- **created\_at** (u64): the UNIX timestamp showing when this payment was initiated
|
2021-05-26 06:49:01 +01:00
|
|
|
- **destination** (pubkey, optional): the final destination of the payment if known
|
2022-06-09 17:36:00 +01:00
|
|
|
- **completed\_at** (u64, optional): the UNIX timestamp showing when this payment was completed
|
2021-05-26 06:49:01 +01:00
|
|
|
- **label** (string, optional): the label, if given to sendpay
|
|
|
|
- **bolt11** (string, optional): the bolt11 string (if pay supplied one)
|
2022-04-02 03:33:35 +01:00
|
|
|
- **description** (string, optional): the description matching the bolt11 description hash (if pay supplied one)
|
2021-05-26 06:49:01 +01:00
|
|
|
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).
|
|
|
|
|
|
|
|
If **status** is "complete":
|
2022-09-05 22:33:09 +01:00
|
|
|
|
2023-01-30 06:24:17 +00:00
|
|
|
- **preimage** (secret): proof of payment
|
2022-09-05 22:45:06 +01:00
|
|
|
- **number\_of\_parts** (u64, optional): the number of parts for a successful payment (only if more than one).
|
2021-05-26 06:49:01 +01:00
|
|
|
|
|
|
|
If **status** is "failed":
|
2022-09-05 22:33:09 +01:00
|
|
|
|
2021-05-26 06:49:01 +01:00
|
|
|
- **erroronion** (hex, optional): the error onion returned on failure, if any.
|
2021-09-03 11:07:59 +01:00
|
|
|
|
2021-05-26 06:49:01 +01:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 00:54:18 +01:00
|
|
|
|
2022-11-11 01:44:56 +00:00
|
|
|
The returned array is ordered by increasing **created\_at** fields.
|
2021-05-31 03:39:27 +01:00
|
|
|
|
2019-08-10 00:54:18 +01:00
|
|
|
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 02:33:16 +01:00
|
|
|
|
2023-01-30 06:24:17 +00:00
|
|
|
[comment]: # ( SHA256STAMP:716bcbf01d946c6e4da0bd2f6817c34e6471a1fcd2f0f388ce47984271285c72)
|