LIGHTNING-OPENCHANNEL_ABORT(7)

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

✨ LIGHTNING-OPENCHANNEL_ABORT(7) ✨

okay bestie, welcome to the lightning-openchannel_abort page πŸ’… β€” yes it's a LIGHTNING-OPENCHANNEL_ABORT(7) manual page, and yes it's about hitting the abort button on a channel, so buckle up πŸŽ€

πŸ’– NAME πŸ’–

openchannel_abort β€” the command that lets you ~abort~ a channel to a peer, no cap πŸ›‘

🌸 SYNOPSIS 🌸

openchannel_abort channel_id

πŸ¦‹ DESCRIPTION πŸ¦‹

so openchannel_abort is a low level RPC command, iykyk β€” it starts an abort for the channel you point at. it rides the openchannel protocol, the one that lets you build transactions interactively (very main character energy fr fr) ✨

  • channel_id (hash) β€” the channel id of the channel you wanna abort. that's the one. give it here πŸ’Œ

πŸ”₯ RETURN VALUE πŸ”₯

when it slays (aka on success), you get an object back with:

  • channel_id (hash) β€” the channel id of the aborted channel 🫢
  • channel_canceled (boolean) β€” whether this is completely canceled. heads up though: there may still be remaining in-flight transactions hanging around, so don't assume it's fully done just because of this πŸ‘€
  • reason (string) β€” usually "Abort requested", but if it happened to fail at the same time it could be something different. surprises happen 😭

πŸ’€ ERRORS πŸ’€

on error the returned object comes with code and message properties, and code is one of these bad boys:

  • -32602 β€” if the given parameters are wrong πŸ™ˆ
  • -1 β€” catchall nonspecific error, the classic "idk something broke" πŸ’€
  • 305 β€” peer is not connected πŸ”Œ
  • 311 β€” unknown channel id πŸ•΅οΈ
  • 312 β€” channel in an invalid state 🚫

πŸ‘‘ AUTHOR πŸ‘‘

Lisa Neigut niftynei@gmail.com is mainly responsible. queen behavior, we love to see it πŸ’…πŸ‘‘

🌈 SEE ALSO 🌈

go read these next bestie, they're all linked:

⭐ RESOURCES ⭐

main web site, the mothership: https://github.com/ElementsProject/lightning 🌐


πŸ“ EXAMPLES πŸ“

Example 1:

Request:

$ lightning-cli openchannel_abort -k "channel_id"="channelid0111200111200111200111200111200111200111200111200111200"

{
  "id": "example:openchannel_abort#1",
  "method": "openchannel_abort",
  "params": {
    "channel_id": "channelid0111200111200111200111200111200111200111200111200111200"
  }
}

Response:

{
  "channel_id": "channelid0111200111200111200111200111200111200111200111200111200",
  "channel_canceled": false,
  "reason": "Abort requested"
}

and that's the whole page bestie, you ate that 🫢 this little love letter is from Core Lightning v26.06.9 β€” mwah, go abort some channels responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from