lightning-splicing
БесплатноБез исполняемых скриптовНе проверенChannel splicing: splice-in (adding capacity) and splice-out (withdrawing) without closing the channel. Replaces "close and reopen" with one splice tx. USE…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Lightning Splicing
Splicing modifies a channel's funding tx (and capacity) without closing the channel. Atomic: previous channel state continues with new funding output.
Pre-splicing, capacity changes meant close + reopen, costing two on-chain txs and disrupting payment flow.
Mechanics
A splice transaction:
- Spends the current channel's funding output.
- Adds new inputs (splice-in) or outputs (splice-out).
- Creates a new funding output with updated capacity.
- Both parties sign.
Channel state continues: existing HTLCs, balances, fees all remain. After confirmation, the new funding output becomes the channel's anchor, and the next commitment uses the new total.
Splice-in (adding liquidity)
inputs:
funding_output (old) # previous channel funding
external_input_1, ..., external_input_n # new BTC from on-chain wallet
outputs:
funding_output_new (capacity = old + added)
change (any leftover from external inputs)
Use case: top up a channel that's nearly empty without disrupting ongoing payments.
Splice-out (withdrawing)
inputs:
funding_output (old)
outputs:
funding_output_new (capacity = old - withdrawn)
withdrawal_output (your on-chain address)
Use case: reduce channel capacity, get on-chain funds without closing.
Combined splice
inputs:
funding_output (old)
add_1, ..., add_n
outputs:
funding_output_new
withdrawal_1, ..., withdrawal_m
change
Both directions in one tx.
Protocol (BOLT 2 channel splicing, feature 62/63)
Splicing left draft status when "Channel Splicing (feature 62/63)"
(lightning/bolts PR #1160) was merged on 2026-03-23. BOLT 9 now lists
option_splice at feature bits 62/63; BOLT 2 has a "Channel Splicing"
section.
Prerequisite: quiescence. A splice may only begin once the channel is
quiescent (option_quiesce, bits 34/35, the stfu message), and only the
quiescence initiator may send splice_init. The channel leaves quiescence
as soon as tx_signatures have been exchanged — it does not stay
quiescent while the splice tx waits to confirm.
Messages:
splice_init(type 80) — proposing a splice; carriesfunding_contribution_satoshis(negative for splice-out) andfunding_feerate_perkw.splice_ack(type 81) — accepting, with the peer's ownfunding_contribution_satoshis.- Then standard
tx_*messages from BOLT 2 interactive-tx (re-used):tx_add_input,tx_add_output,tx_remove_*,tx_complete,tx_abort. commit_sig, thentx_signaturesexchange.splice_locked(type 77) — carries thesplice_txidthat reached acceptable depth.
The splice initiator is responsible for adding the current funding output as an input and the new funding output as an output; both sides may contribute further inputs and outputs during the interactive-tx session.
Confirmation
After tx_signatures, the channel resumes normal operation while the splice
transaction is unconfirmed. Several splice transactions can be pending at
once:
- Splice txs are RBF-able via
tx_init_rbf/tx_ack_rbf, but an RBF attempt is not itself normal operation: the channel must be quiesced again first, andtx_init_rbfmay only be sent by the quiescence initiator of that round. That initiator need not be the splice initiator — that is the sense in which either node may RBF. An RBF attempt may also set a differentfunding_output_contribution(thetx_init_rbf/tx_ack_rbfTLV supersedingsplice_init'sfunding_contribution_satoshis), so it is not purely a feerate bump: it is an opportunity to splice more funds in or out without waiting for the first attempt to confirm. - RBF is forbidden by the spec once
option_zeroconfhas been negotiated. Every attempt spends the same funding output, so attempts automatically double-spend each other, which risks losing funds at 0-conf. CPFP with another splice instead. - Each attempt is a candidate. Nodes keep one commitment transaction per
candidate funding tx — the pre-splice funding tx plus every splice
attempt — and exchange
commitment_signedfor all of them. Payments must be valid against every candidate. - Once any candidate reaches acceptable depth, both sides send
splice_lockedwith thatsplice_txid. On matching txids the other candidates and their ancestors may be discarded, andannouncement_signaturesare re-sent with theshort_channel_idof the locked tx. - If the two
splice_lockedmessages name different candidates (the peers are on different forks), the spec's recommendation is to ignore the message and wait for one fork to replace the other, rather than failing the channel.
If every splice candidate is evicted or reorged out, the channel simply continues on the pre-splice funding output and its commitment.
Splice + Lightning at the same time
While splice tx is unconfirmed:
- Channel can still process HTLCs.
- Commitment txs are maintained for every pe
Установить lightning-splicing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл lightning-splicing?
Channel splicing: splice-in (adding capacity) and splice-out (withdrawing) without closing the channel. Replaces "close and reopen" with one splice tx. USE WHEN: increasing/decreasing channel capacity in production, designing dynamic-balance LSP integrations, planning channel lifecycle.
Как установить скилл lightning-splicing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lightning-splicing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic