2019-08-31 14:30:56 +02:00
|
|
|
lightning-listsendpays -- Low-level command for querying sendpay status
|
|
|
|
=======================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**listsendpays** [*bolt11*] [*payment\_hash*] [*status*]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **listsendpays** RPC command gets the status of all *sendpay*
|
|
|
|
commands (which is also used by the *pay* command), or with *bolt11* or
|
|
|
|
*payment\_hash* limits results to that specific payment. You cannot
|
2021-09-17 10:04:17 +02:00
|
|
|
specify both. It is possible filter the payments also by *status*.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
Note that in future there may be more than one concurrent *sendpay*
|
|
|
|
command per *pay*, so this command should be used with caution.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
Note that the returned array is ordered by increasing *id*.
|
|
|
|
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object containing **payments** is returned. It is an array of objects, where each object contains:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
- **id** (u64): unique ID for this payment attempt
|
2022-11-11 03:03:13 +01:00
|
|
|
- **groupid** (u64): Grouping key to disambiguate multiple attempts to pay an invoice or the same payment\_hash
|
2023-01-30 07:24:16 +01:00
|
|
|
- **payment\_hash** (hash): the hash of the *payment\_preimage* which will prove payment
|
2021-06-16 03:10:17 +02:00
|
|
|
- **status** (string): status of the payment (one of "pending", "failed", "complete")
|
2022-09-05 23:45:06 +02:00
|
|
|
- **created\_at** (u64): the UNIX timestamp showing when this payment was initiated
|
|
|
|
- **amount\_sent\_msat** (msat): The amount sent
|
2023-01-30 07:09:03 +01:00
|
|
|
- **partid** (u64, optional): Part number (for multiple parts to a single payment)
|
2022-09-05 23:45:06 +02:00
|
|
|
- **amount\_msat** (msat, optional): The amount delivered to destination (if known)
|
2021-06-16 03:10:17 +02:00
|
|
|
- **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-06-16 03:10:17 +02:00
|
|
|
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).
|
|
|
|
|
|
|
|
If **status** is "complete":
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2023-01-30 07:24:16 +01:00
|
|
|
- **payment\_preimage** (secret): the proof of payment: SHA256 of this **payment\_hash**
|
2021-06-16 03:10:17 +02:00
|
|
|
|
|
|
|
If **status** is "failed":
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
- **erroronion** (hex, optional): the onion message returned
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2021-01-14 04:36:59 +01:00
|
|
|
|
2019-08-10 01:54:18 +02:00
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Christian Decker <<decker.christian@gmail.com>> is mainly
|
|
|
|
responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
lightning-listpays(7), lightning-sendpay(7), lightning-listinvoice(7).
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2023-01-30 07:24:18 +01:00
|
|
|
[comment]: # ( SHA256STAMP:635a4026d5472207c545391db99c4f5569ad5388ada009de028a0b4063c594a4)
|