LIGHTNING-OPENCHANNEL_ABORT(7)
β¨ 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:
lightning-openchannel_init(7)lightning-openchannel_update(7)lightning-openchannel_signed(7)lightning-openchannel_bump(7)lightning-fundchannel_start(7)lightning-fundchannel_complete(7)lightning-fundchannel(7)lightning-fundpsbt(7)lightning-utxopsbt(7)lightning-multifundchannel(7)
β 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
- 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