LIGHTNING-CANCELRECURRINGINVOICE(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

πŸ’… LIGHTNING-CANCELRECURRINGINVOICE(7) πŸ’…

okay bestie, welcome to the lightning-cancelrecurringinvoice page β€” yes it's a whole mouthful, but it's giving "polite queen energy" and we're gonna get through it together 🫢


✨ NAME ✨

cancelrecurringinvoice β€” the command for sending a cancel message for a recurring offer πŸŽ€


🌸 SYNOPSIS 🌸

cancelrecurringinvoice offer recurrence_counter recurrence_label [recurrence_start] [payer_note] [bip353]

πŸ¦‹ DESCRIPTION πŸ¦‹

So this command was added in v25.09, ngl it's fresh ✨

πŸ’€ NOTE: Recurring offers are experimental, and may be changed in backwards-incompatible ways. So like... don't build your whole personality on them yet, mkay?

The cancelrecurringinvoice RPC command sends a cancellation message in place of an invoice_request. The BOLT 12 spec suggests sending this as a courtesy in place of the next invoice_request (as would be sent by fetchinvoice). Basically: you're ghosting your subscription, but politely, and the spec says it's the right thing to do πŸ’–

Here's the whole cast of arguments, lowkey iconic lineup:

  • offer (string) β€” the offer string (must be recurring!) which we have been paying 🧚
  • recurrence_counter (u64) β€” one later than the last-specified recurrence_counter for the last invoice. yeah, one later, don't @ me
  • recurrence_label (string) β€” this must be the same as prior fetchinvoice calls for the same recurrence, because it's what links them together πŸŽ€
  • recurrence_start (number, optional) β€” indicates what period number to start at (usually 0). this will be the same as previous fetchinvoice calls
  • payer_note (string, optional) β€” to tell the issuer the reason for the cancellation. use it kindly bestie πŸ₯Ί
  • bip353 (string, optional) β€” BIP353 string (optionally with β‚Ώ) indicating where we fetched the offer from πŸ”₯

⭐ RETURN VALUE ⭐

On success, an object is returned, containing:

  • bolt12 (string) β€” The invoice_request we sent to the issuer. that's your receipt, bestie, keep it 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Rusty Russell rusty@rustcorp.com.au is mainly responsible. slay, king πŸ’œ


🌈 SEE ALSO 🌈


πŸŽ€ RESOURCES πŸŽ€

Main web site: https://github.com/ElementsProject/lightning


and that's the whole vibe check ✨ this page is from Core Lightning v26.06.9 β€” go forth and cancel your recurrences with grace, mwah πŸ’‹πŸ’…

πŸ“¦ where this page comes from