LIGHTNING-OPENCHANNEL_BUMP(7)
π lightning-openchannel_bump (7) π
okay bestie, this is the lightning-openchannel_bump page, section 7 of the manual, and we're about to get into some funding-transaction glow-up business β¨
π NAME π
openchannel_bump β Command to initiate a channel RBF
β¨ SYNOPSIS β¨
openchannel_bump channel_id amount initialpsbt [funding_feerate]
π DESCRIPTION π
So openchannel_bump is an RPC command that kicks off a channel RBF (that's Replace-By-Fee, iykyk π₯) for the channel you point at. It rides on the openchannel protocol, which is the whole interactive-transaction-construction situation β very collaborative, very main character energy.
β οΈ Warning: bumping a leased channel will lose the lease. Not a drill, bestie. The lease literally goes poof. π
Here's the tea on the arguments:
channel_id(hash) β the id of the channel you wanna RBF. That's the one, no cap.amount(sat) β the satoshi value that we are contributing to the channel. Here's the thing: this value gets _added_ to the provided PSBT, into the output that's encumbered by the 2-of-2 script for this channel. It's an add, not a replace. π«Άinitialpsbt(string) β the funded, incomplete PSBT that specifies the UTXOs and the change output for our channel contribution. It can be updated later (peepopenchannel_update).initialpsbtmust have at least one input, and it must have the Non-Witness UTXO (PSBT_IN_NON_WITNESS_UTXO) set for every single input. If you don't meet that requirement, an error with code309comes back at you. So don't skip it πfunding_feerate(feerate, optional) β the feerate for the funding transaction. The default is1/64th greater than the last feerate used for this channel. Cute little auto-bump, love that for us π
π RETURN VALUE π
When it slays, you get an object back containing:
channel_id(hash) β the channel id of the channel.channel_type(object) β the channel_type as negotiated with the peer. (added v24.02):bits(array of u32s) β each bit set in this channel_type. (added v24.02):- (u32, optional) β bit number.
names(array of strings) β feature name for each bit set in this channel_type. Note thatanchors_zero_fee_htlc_txis a deprecated synonym foranchors. (added v24.02):- (string, optional) (one of
"static_remotekey/even","anchor_outputs/even","anchors_zero_fee_htlc_tx/even","anchors/even","scid_alias/even","zeroconf/even") β name of feature bit.
- (string, optional) (one of
psbt(string) β the (incomplete) PSBT of the RBF transaction.commitments_secured(boolean) (always false) β whether the psbt is complete. It's alwaysfalse, bestie. Always. π«funding_serial(u64) β the serial_id of the funding output in the psbt.requires_confirmed_inputs(boolean, optional) β does the peer require confirmed inputs in the psbt?
A couple of vibe checks to keep in mind:
- If the peer does not support
option_dual_fund, this command will return an error. - If the channel is not in a state that's eligible for RBF, this command will return an error.
π ERRORS π
When it goes wrong, the returned object has code and message properties, and code is one of these:
-32602β if the given parameters are wrong.-1β catchall nonspecific error.300β the amount exceeded the maximum configured funding amount.301β the provided PSBT cannot afford the funding amount.305β peer is not connected.309β PSBT missing required fields311β unknown channel id.312β channel in an invalid state
π AUTHOR π
Lisa Neigut niftynei@gmail.com is mainly responsible. Iconic. π«Ά
π¦ SEE ALSO π¦
lightning-openchannel_init(7), lightning-openchannel_update(7), lightning-openchannel_signed(7), lightning-openchannel_abort(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: https://github.com/ElementsProject/lightning
β EXAMPLES β
Example 1:
Request:
$ lightning-cli openchannel_bump "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" "1000000" "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000" "15000perkw"
{
"id": "example:openchannel_bump#1",
"method": "openchannel_bump",
"params": [
"b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5",
1000000,
"cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000",
"15000perkw"
]
}
Response:
{
"channel_id": "channelid0111200111200111200111200111200111200111200111200111200",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000",
"channel_type": {
"bits": [
12,
22
],
"names": [
"static_remotekey/even",
"anchors/even"
]
},
"commitments_secured": false,
"funding_serial": 17725655605188030000,
"requires_confirmed_inputs": false
}
Example 2:
Request:
$ lightning-cli openchannel_bump -k "channel_id"="channelid0111200111200111200111200111200111200111200111200111200" "amount"=1000000 "initialpsbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000" "funding_feerate"="15000perkw"
{
"id": "example:openchannel_bump#2",
"method": "openchannel_bump",
"params": {
"channel_id": "channelid0111200111200111200111200111200111200111200111200111200",
"amount": 1000000,
"initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000",
"funding_feerate": "15000perkw"
}
}
Response:
{
"channel_id": "channelid0111200111200111200111200111200111200111200111200111200",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000",
"channel_type": {
"bits": [
12,
22
],
"names": [
"static_remotekey/even",
"anchors/even"
]
},
"commitments_secured": false,
"funding_serial": 17725655605188040000,
"requires_confirmed_inputs": false
}
Example 3:
Request:
$ lightning-cli openchannel_bump "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" "2000000" "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000" "18750perkw"
{
"id": "example:openchannel_bump#3",
"method": "openchannel_bump",
"params": [
"b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5",
2000000,
"cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000",
"18750perkw"
]
}
Response:
{
"channel_id": "channelid0111200111200111200111200111200111200111200111200111200",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000",
"channel_type": {
"bits": [
12,
22
],
"names": [
"static_remotekey/even",
"anchors/even"
]
},
"commitments_secured": false,
"funding_serial": 17725655605188050000,
"requires_confirmed_inputs": false
}
π that's the whole page, bestie! brought to you by Core Lightning v26.06.9 β go forth and bump those fees responsibly, 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