lightning-renepaystatus -- Command for quering the status of previous renepay attempts
SYNOPSIS
renepaystatus [invstring]
DESCRIPTION
Command added in v23.08.
The renepaystatus RPC command queries the payment plugin renepay for the status of previous payment attempts.
This command always succeeds.
- invstring (string, optional): If specified, the command will return a list of payment attempts whose invoice matches invstring, otherwise all payments with be listed.
RETURN VALUE
On success, an object containing paystatus is returned. It is an array of objects, where each object contains:
- bolt11 (string): Invoice string BOLT11.
- payment_hash (hash): The hash of the payment_preimage which will prove payment.
- created_at (number): The UNIX timestamp showing when this payment was initiated.
- groupid (u32): The id for this payment attempt.
- amount_msat (msat): Amount the recipient received.
- status (string) (one of "complete", "pending", "failed"): Status of payment.
- payment_preimage (secret, optional): The proof of payment: SHA256 of this payment_hash (for completed payments only).
- parts (u32, optional): How many attempts this took.
- amount_sent_msat (msat, optional): Total amount we sent including fees (for completed payments only).
- destination (pubkey, optional): The final destination of the payment.
- notes (array of strings, optional): A list of messages for debugging purposes.:
- (string, optional): A message generated by renepay.
AUTHOR
Eduardo Quintana-Miranda <[email protected]> is mainly responsible.
SEE ALSO
lightning-renepay(7), lightning-listpays(7)
RESOURCES
Main web site: https://github.com/ElementsProject/lightning
EXAMPLES
Example 1:
Request:
lightning-cli renepaystatus -k "invstring"="lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7"
{
"id": "example:renepaystatus#1",
"method": "renepaystatus",
"params": {
"invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7"
}
}
Response:
{
"paystatus": [
{
"bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7",
"amount_msat": 400000,
"payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459",
"destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59",
"created_at": 1722303718.0730329,
"groupid": 1,
"parts": 2,
"status": "complete",
"payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90",
"amount_sent_msat": 400000
}
]
}