LIGHTNING-NOTIFI...-SENDPAY_FAILURE(7)
π NAME π
okay so this is the LIGHTNING-NOTIFI...-SENDPAY_FAILURE(7) manual page, and itβs all about sendpay_failure β the notification for a failed sendpay completion. periodt. π
πΈ DESCRIPTION πΈ
the sendpay_failure notification informs whenever a payment attempt completes with failed status. thatβs the whole vibe: payment attempt says βnope,β and this notification is the heads-up. π«Ά
π NOTIFICATION PAYLOAD π
hereβs the payload, bestie β every field, no skipping, no cap:
code(integer) β the JSON-RPC error code for the payment failure.message(string) β the human-readable payment failure message.data(object) β the structured payment failure details, all up in here:created_index(u64, optional) β 1-based index indicating order this payment was created in. (added v23.11)id(u64, optional) β old synonym forcreated_index.payment_hash(hash, optional) β the hash of the payment preimage.groupid(u64, optional) β grouping key for multiple attempts on the same payment.updated_index(u64, optional) β 1-based index indicating order this payment was updated in. (added v23.11)partid(u64, optional) β part number for a multi-part payment.destination(pubkey, optional) β the final destination of the payment, if known.amount_msat(msat, optional) β the amount intended for the destination, if known.amount_sent_msat(msat, optional) β the total amount sent including fees.created_at(u64, optional) β the UNIX timestamp when this payment was initiated.completed_at(u64, optional) β the UNIX timestamp when this payment completed.status(string, optional) (one of"failed","pending","complete") β the terminal status for a failedsendpaynotification.payment_preimage(secret, optional) β the payment preimage, if the payment later completed through another path.label(string, optional) β the optional label associated with the payment.bolt11(string, optional) β the bolt11 invoice string, if present.bolt12(string, optional) β the bolt12 invoice or offer string, if present. (added v24.02)description(string, optional) β the description associated with the payment, if present.erroronion(hex, optional) β the raw error onion if one was retained for the payment.onionreply(hex, optional) β the onion reply for an unparseable onion failure.erring_index(u32, optional) β the position in the route where the failure occurred.failcode(u32, optional) β the BOLT 4 failcode.failcodename(string, optional) β the symbolic name for the failcode, if known.erring_node(pubkey, optional) β the node that produced the failure, if known.erring_channel(short_channel_id, optional) β the channel that produced the failure, if known.erring_direction(u32, optional) β the direction within the erring channel.raw_message(hex, optional) β the raw failure message payload, if present.
cute little sign-off: this page is repping Core Lightning v26.06.9, and the footer didnβt list a date, so Iβm not making one up β thatβs the whole timestamp situation, bestie. mwah πβ¨
π¦ 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