Why JIT Liquidity + Splice Are Critical for Atomic Swaps
A look at two core capabilities on the RGB Lightning roadmap—JIT (Just-In-Time) Liquidity and Splice (channel splicing)—and what they mean for the RGB asset atomic swap experience.
1. Background: Experience Bottlenecks in Atomic Swaps
When building native asset atomic swaps on the RGB Lightning Network, the current pipeline still has clear pain points.
When a user completes an RGB buy order, two channels typically must be opened sequentially:
- The user opens a BTC channel to pay BTC;
- The service provider opens a BTC/RGB composite channel to deliver the RGB asset to the user.
This "sequential dual-channel opening" model carries three major drawbacks:
- High latency: Opening a channel requires waiting for Bitcoin mainnet block confirmations (typically 6 confirmations), resulting in transaction latency that is hard to accept.
- Fixed capacity: Once channel funds capacity is set, it is hard to adjust. When the balance is insufficient for the next transaction, the old channel often must be closed and a new one rebuilt—costly, with high fees and a fragmented experience.
- Hard to support high-frequency trading: This model struggles to support high-frequency continuous trading scenarios like perpetual contracts, limiting the RGB ecosystem's trading experience.
To make RGB asset swaps closer to "as smooth as sending BTC over Lightning," two problems need progress at the foundation: the wait time to create a channel from 0 to 1, and the ability to scale channel funds. These are exactly the core problems that JIT Liquidity and Splice each address.
2. JIT Liquidity: On-Demand RGB Channel Opening
The core principle of JIT (Just-In-Time) liquidity is create on demand, with no pre-lockup required.
How it works:
- Users do not need to pre-fund or manually create RGB asset channels;
- When a user initiates an RGB receive/swap request, the service provider instantly generates a virtual off-chain channel—no immediate on-chain settlement needed;
- After the first transaction completes, the channel is automatically anchored on-chain and converted into an official RGB Lightning channel.
Core value:
- Lower entry barrier: Users can participate in RGB asset swaps without locking up idle capital to open a channel;
- Shorter wait times: Reduces the delay from mainnet block confirmations;
- Closer to BTC Lightning payments: Users can complete RGB transactions more like sending/receiving Lightning BTC, while improving the service provider's capital efficiency.
JIT addresses the "0 to 1" problem—shorten channel-creation wait, so trades can start quickly without a pre-built channel.
3. Splice: Dynamic Capacity Adjustment for RGB Asset Channels
Splice is built on the Lightning Network's native Channel Splicing technology, allowing BTC / RGB funds capacity in a channel to be resized without closing or rebuilding the channel.
How it works:
- Splice-in (expand): Add BTC/RGB assets directly to an existing channel;
- Splice-out (shrink): Withdraw idle funds from the channel as needed;
- The channel stays online throughout—no close-and-rebuild just to rebalance. The funding transaction is updated via signatures and confirmed once on-chain.
Core value:
- Reduces the old pattern of "close and reopen a channel when the balance runs out";
- Better supports high-frequency continuous trading, creating room for scenarios like perpetual contracts;
- Lowers on-chain fees from repeatedly opening/closing channels, improving capital turnover and utilization.
Splice addresses channel-funds elasticity—dynamically expand or shrink funds on the same channel to support higher-frequency continuous trading.
4. Synergy: Redefining the Atomic Swap Experience
Combining these foundational capabilities makes the full pipeline more complete:
- Atomic Swap: Powers the underlying asset swap logic;
- JIT: Addresses "0 to 1"—shorten channel-creation wait, quick trade initiation;
- Splice: Addresses channel-funds elasticity—resize funds without closing the channel, supporting higher-frequency continuous trading.
As JIT and Splice land step by step, the current pain points of RGB channels—high latency, cumbersome workflows, and difficulty supporting high-frequency trading—can be significantly eased, laying a stronger infrastructure foundation for RGB asset atomic swaps and ecosystem derivatives trading.