LIGHTNING-LISTSENDPAYS(7)
π NAME π
Okay so this is the lightning-listsendpays(7) manual page, bestie, and listsendpays is a low-level command for querying sendpay status β yes, the status-tracking queen herself. π
β¨ SYNOPSIS β¨
listsendpays [bolt11] [payment_hash] [status] [index [start] [limit]]
πΈ 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 specify both, so pick one and commit, bestie. π
It is possible to filter the payments also by status.
β οΈ Heads up, fr fr: there may be more than one concurrentsendpaycommand perpay, so this command should be used with caution.
Here's the option vibe check:
bolt11(string, optional) β Bolt11 invoice.payment_hash(hash, optional) β The hash of thepayment_preimage.status(string, optional) (one of"pending","complete","failed") β Whether the invoice has been paid, pending, or failed.index(string, optional) (one of"created","updated") β If neitherbolt11orpayment_hashis specified,indexcontrols ordering, bycreated(default) orupdated. (added v23.11)start(u64, optional) β Ifindexis specified,startmay be specified to start from that value, which is generally returned fromlightning-wait(7). (added v23.11)limit(u32, optional) β Ifindexis specified,limitcan be used to specify the maximum number of entries to return. (added v23.11)
π¦ RETURN VALUE π¦
Note that the returned array is ordered by increasing id. On success, an object containing payments is returned. It is an array of objects, where each object contains:
created_index(u64) β 1-based index indicating order this payment was created in. (added v23.11)id(u64) β Old synonym forcreated_index.groupid(u64) β Grouping key to disambiguate multiple attempts to pay an invoice or the samepayment_hash.payment_hash(hash) β The hash of thepayment_preimagewhich will prove payment.status(string) (one of"pending","failed","complete") β Status of the payment.created_at(u64) β The UNIX timestamp showing when this payment was initiated.amount_sent_msat(msat) β The amount sent.partid(u64, optional) β Part number (for multiple parts to a single payment).updated_index(u64, optional) β 1-based index indicating order this payment was changed (only present if it has changed since creation). (added v23.11)amount_msat(msat, optional) β The amount delivered to destination (if known). This is not known in the case wheresendonion(7)was used to manually initiate a payment without theamount_msatparameter.destination(pubkey, optional) β The final destination of the payment if known.label(string, optional) β The label, if given tosendpay.bolt11(string, optional) β The bolt11 string (ifpaysupplied one).description(string, optional) β The description matching the bolt11 description hash (ifpaysupplied one).bolt12(string, optional) β The bolt12 string (if supplied forpay).
If status is "complete":
payment_preimage(secret) β The proof of payment: SHA256 of thispayment_hash.completed_at(u64, optional) β The UNIX timestamp showing when this payment was completed.
If status is "failed":
erroronion(hex, optional) β The onion message returned.
π AUTHOR π
Christian Decker decker.christian@gmail.com is mainly responsible. Main character energy, honestly. π«Ά
π SEE ALSO π
lightning-listpays(7), lightning-sendpay(7), lightning-listinvoices(7)
π§ RESOURCES π§
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1:
Request:
$ lightning-cli listsendpays -k "bolt11"="lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000"
{
"id": "example:listsendpays#1",
"method": "listsendpays",
"params": {
"bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000"
}
}
Response:
{
"payments": [
{
"created_index": 2,
"id": 2,
"payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100",
"groupid": 1,
"updated_index": 2,
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"amount_msat": 10000,
"amount_sent_msat": 10001,
"created_at": 1738000000,
"completed_at": 1739000000,
"status": "complete",
"payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101"
}
]
}
Example 2:
Request:
$ lightning-cli listsendpays
{
"id": "example:listsendpays#2",
"method": "listsendpays",
"params": {}
}
Response:
{
"payments": [
{
"created_index": 2,
"id": 2,
"payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100",
"groupid": 1,
"updated_index": 2,
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"amount_msat": 10000,
"amount_sent_msat": 10001,
"created_at": 1738000000,
"completed_at": 1739000000,
"status": "complete",
"payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101"
},
{
"created_index": 3,
"id": 3,
"payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101",
"groupid": 0,
"updated_index": 3,
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"amount_msat": 10000,
"amount_sent_msat": 10001,
"created_at": 1738010000,
"completed_at": 1739010000,
"status": "complete",
"payment_preimage": "paymentpreimage1010101010101010101010101010101010101010101010101"
},
{
"created_index": 4,
"id": 4,
"payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201",
"groupid": 0,
"updated_index": 4,
"destination": "nodeid040404040404040404040404040404040404040404040404040404040404",
"amount_msat": 10000000,
"amount_sent_msat": 10000202,
"created_at": 1738020000,
"completed_at": 1739020000,
"status": "complete",
"payment_preimage": "paymentpreimage2020202020202020202020202020202020202020202020202"
},
{
"created_index": 5,
"id": 5,
"payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
"groupid": 0,
"updated_index": 5,
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"amount_msat": 10000,
"amount_sent_msat": 10001,
"created_at": 1738030000,
"completed_at": 1739030000,
"status": "failed"
},
{
"created_index": 6,
"id": 6,
"payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
"groupid": 0,
"updated_index": 6,
"partid": 1,
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"amount_msat": 10000,
"amount_sent_msat": 10001,
"created_at": 1738040000,
"completed_at": 1739040000,
"status": "complete",
"payment_preimage": "paymentpreimage3030303030303030303030303030303030303030303030303"
}
]
}
π That's the lightning-listsendpays(7) tea, signed off from Core Lightning v26.06.9 β no date printed on the footer, so I'm not making one up, periodt. π
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms