2019-08-31 14:30:56 +02:00
|
|
|
lightning-listpays -- Command for querying payment status
|
|
|
|
=========================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**listpays** [*bolt11*] [*payment_hash*] [*status*]
|
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.
|
2021-09-06 12:08:07 +02:00
|
|
|
It is possible filter the payments also by *status*.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object containing **pays** is returned. It is an array of objects, where each object contains:
|
|
|
|
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
|
|
|
|
- **status** (string): status of the payment (one of "pending", "failed", "complete")
|
|
|
|
- **created_at** (u64): the UNIX timestamp showing when this payment was initiated
|
|
|
|
- **destination** (pubkey, optional): the final destination of the payment if known
|
|
|
|
- **label** (string, optional): the label, if given to sendpay
|
|
|
|
- **bolt11** (string, optional): the bolt11 string (if pay supplied one)
|
2022-04-02 04:33:35 +02:00
|
|
|
- **description** (string, optional): the description matching the bolt11 description hash (if pay supplied one)
|
2021-05-26 07:49:01 +02:00
|
|
|
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).
|
|
|
|
|
|
|
|
If **status** is "pending" or "complete":
|
|
|
|
- **amount_sent_msat** (msat): the amount we actually sent, including fees
|
|
|
|
- **amount_msat** (msat, optional): the amount the destination received, if known
|
|
|
|
|
|
|
|
If **status** is "complete":
|
|
|
|
- **preimage** (hex): proof of payment (always 64 characters)
|
|
|
|
- **number_of_parts** (u64, optional): the number of parts for a successful payment (only if more than one).
|
|
|
|
|
|
|
|
If **status** is "failed":
|
|
|
|
- **erroronion** (hex, optional): the error onion returned on failure, if any.
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-05-26 07:49:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2021-05-31 04:39:27 +02:00
|
|
|
The returned array is ordered by increasing **created_at** fields.
|
|
|
|
|
2019-08-10 01:54:18 +02: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 03:33:16 +02:00
|
|
|
|
2022-07-13 17:45:39 +02:00
|
|
|
[comment]: # ( SHA256STAMP:ec7234aa1ec9979cdc71a5bfe861296ba90efdf30236922a822b2ecab6fd9635)
|