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
--------
2023-10-28 13:40:47 +10:30
**listsendpays** [*bolt11*] [*payment\_hash*] [*status*] [*index* [*start*] [*limit*]]
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
2023-10-28 13:40:47 +10:30
Note that there may be more than one concurrent *sendpay*
2019-08-10 01:54:18 +02:00
command per *pay* , so this command should be used with caution.
2023-10-28 13:40:47 +10:30
If neither *bolt11* or *payment\_hash* is specified,
`index` controls ordering, by `created` (default) or `updated` . If
`index` is specified, `start` may be specified to start from that
value, which is generally returned from lightning-wait(7), and `limit`
can be used to specify the maximum number of entries to return.
2019-08-10 01:54:18 +02:00
RETURN VALUE
------------
2021-06-16 10:40:17 +09:30
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-06 07:03:09 +09:30
2023-10-28 13:39:15 +10:30
- **created\_index** (u64): 1-based index indicating order this payment was created in *(added v23.11)*
- **id** (u64): old synonym for created\_index
2022-11-10 21:03:13 -05:00
- **groupid** (u64): Grouping key to disambiguate multiple attempts to pay an invoice or the same payment\_hash
2023-01-30 16:54:16 +10:30
- **payment\_hash** (hash): the hash of the *payment\_preimage* which will prove payment
2021-06-16 10:40:17 +09:30
- **status** (string): status of the payment (one of "pending", "failed", "complete")
2022-09-06 07:15:06 +09:30
- **created\_at** (u64): the UNIX timestamp showing when this payment was initiated
- **amount\_sent\_msat** (msat): The amount sent
2023-01-30 16:39:03 +10:30
- **partid** (u64, optional): Part number (for multiple parts to a single payment)
2023-10-28 13:39:15 +10:30
- **updated\_index** (u64, optional): 1-based index indicating order this payment was changed (only present if it has changed since creation) *(added v23.11)*
2022-09-06 07:15:06 +09:30
- **amount\_msat** (msat, optional): The amount delivered to destination (if known)
2021-06-16 10:40:17 +09:30
- **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 13:03:35 +10:30
- **description** (string, optional): the description matching the bolt11 description hash (if pay supplied one)
2021-06-16 10:40:17 +09:30
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).
If **status** is "complete":
2022-09-06 07:03:09 +09:30
2023-01-30 16:54:16 +10:30
- **payment\_preimage** (secret): the proof of payment: SHA256 of this **payment\_hash**
2021-06-16 10:40:17 +09:30
If **status** is "failed":
2022-09-06 07:03:09 +09:30
2021-06-16 10:40:17 +09:30
- **erroronion** (hex, optional): the onion message returned
2021-09-03 19:37:59 +09:30
2021-06-16 10:40:17 +09:30
[comment]: # (GENERATE-FROM-SCHEMA-END)
2021-01-14 14:06:59 +10:30
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 11:03:16 +09:30
2024-01-25 10:58:53 +10:30
[comment]: # ( SHA256STAMP:366f7673738e9858fb81ec80293160c421806aeb224ffa60e8fa6ce937db8da7)