---
title: "JIT Channel (Just-in-Time) — definition | Nuri Glossary"
description: "Opening a channel at the moment a payment arrives, so a new user can receive before setting up liquidity."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/jit-channel"
---

# JIT Channel (Just-in-Time)

Opening a channel at the moment a payment arrives, so a new user can receive before setting up liquidity.

## Basically

A JIT channel opens when your first Lightning payment arrives. You do not need to set one up first, and the provider takes a fee from the payment.

## Key Takeaways

- A JIT channel is a Lightning channel opened on-the-fly by a Lightning Service Provider (LSP) when an incoming payment arrives for a user who has no existing channel or insufficient inbound liquidity.
- The LSP intercepts the incoming payment, opens a new channel, deducts a fee from the payment amount, and forwards the remainder to the recipient in one step that requires zero-conf channels for instant settlement.
- JIT channels are standardised as LSPS2 (bLIP-52) and are supported by major Lightning implementations including LND, LDK, and Eclair, though splicing is increasingly replacing them for ongoing liquidity management.

## What Is a JIT Channel?

A JIT (Just-in-Time) channel is a Lightning Network channel that an LSP opens at the exact moment a payment needs to be delivered to you. Rather than requiring you to set up channels in advance, fund them with on-chain bitcoin, and wait for confirmations, a JIT channel creates the infrastructure on demand when money is already flowing.
A JIT channel works like a toll road that builds itself when the first car arrives, with the cost of the on-chain channel open deducted from the first toll payment. You never need to think about channel management, liquidity provisioning, or on-chain transactions. You simply share a Lightning invoice, and the LSP handles everything behind the scenes when payment arrives.
JIT channels solve one of Lightning's core onboarding problems: new users cannot receive payments without an existing channel, but opening a channel requires on-chain funds and confirmations. This chicken-and-egg problem historically meant users had to acquire on-chain bitcoin first, open a channel, and wait before they could participate in Lightning. JIT channels remove that entire flow.

## How It Works

The JIT channel flow is standardised in the LSPS2 specification (bLIP-52), developed by the LSP Spec working group and finalised in January 2025. The protocol operates over BOLT 8 peer connections using JSON-RPC 2.0 messages.

## Fee Calculation

LSPS2 uses a two-component fee model. It combines a proportional rate with a minimum floor.
The fee covers the on-chain transaction cost of opening the Lightning channel plus the LSP's margin. The LSP commits to keeping the channel open for at least min_lifetime blocks after confirmation. Real-world fees vary by LSP and mempool conditions, but typically include a minimum fee of a few thousand satoshis plus a proportional component.

## The Zero-Conf Requirement

JIT channels depend on zero-confirmation channels for an instant user experience, since without zero-conf you would wait 10 to 60 minutes for the funding transaction to confirm before receiving payment. Zero-conf channels were standardised in BOLTs #910, introducing the option_zeroconf feature bit (50/51) and option_scid_alias (46/47). Both parties exchange channel_ready before the funding transaction confirms, using an alias SCID rather than the real on-chain identifier.
LSPS2 defines two trust models for the zero-conf window. In the default mode (LSP-trusts-client), the LSP broadcasts the funding transaction immediately, and the client can independently verify it appears in the mempool before releasing the preimage. In the client-trusts-LSP mode, the LSP may delay broadcasting until receiving the preimage, which is riskier for the client but allows the LSP to avoid an unnecessary on-chain transaction if the payment fails; for a deeper look at zero-conf tradeoffs, see the zero-conf deep dive.

## Why JIT Channels Matter

Before JIT channels, onboarding a new Lightning user required multiple steps: acquire on-chain bitcoin, find a well-connected peer, open a channel, wait for confirmations, and then request inbound liquidity from that peer. The process could take hours and required technical knowledge that most users lacked.
JIT channels reduce onboarding to a single action: share an invoice, receive payment. The complexity shifts from you to the LSP, which handles channel management, liquidity provisioning, and on-chain transactions as an infrastructure service. The pattern mirrors how traditional payment networks abstract complexity: merchants do not manage card network infrastructure, and Lightning users should not need to manage channel infrastructure.
For wallet developers and platforms building on Bitcoin's Lightning layer, JIT channels enable consumer-grade experiences. You can download a wallet, receive your first payment in seconds, and start transacting without any prior Bitcoin knowledge. That can drive adoption beyond technically sophisticated early users, and the Lightning Service Providers explainer gives a comprehensive look at how LSPs enable these experiences.

## Implementations and Ecosystem

Major Lightning implementations support JIT channels. Several production wallets support them too.
Notable wallets that have used JIT channels include Breez (using their Breez SDK and lspd daemon), Phoenix (before migrating to splicing in v2), and ZEUS (via Olympus LSP). The lightning-liquidity Rust crate from the LDK team provides a reusable library for wallet developers to integrate LSPS2 on both the client and server side.

## New User Onboarding

The primary use case for JIT channels is bootstrapping new Lightning users. You download a wallet, generate an invoice, and receive your first payment. The LSP opens a channel on-the-fly, deducts the opening fee, and delivers the funds instantly, with no prior on-chain balance, no channel management, and no waiting for confirmations.

## Merchant Payment Acceptance

Merchants adopting Lightning for the first time can accept their first customer payment without pre-funding channels. The JIT channel opens when the first customer pays, and subsequent payments flow through the established channel. This substantially lowers the barrier for merchant adoption.

## Wallet-as-a-Service Platforms

Platforms that provision Lightning wallets for end users, such as neobanks, exchanges, or fintech applications, use JIT channels to create on-demand payment infrastructure. Each user gets a channel only when they need one, avoiding the cost of pre-provisioning channels for users who may never transact. This is particularly relevant for mobile wallet architectures where resource efficiency matters.

## JIT Channels vs. Splicing

Splicing is increasingly seen as an evolution beyond JIT channels for ongoing liquidity management. Where JIT channels open a new channel for each capacity shortfall, splicing resizes an existing channel dynamically by adding or removing funds through a single on-chain transaction.
ACINQ (the team behind Phoenix wallet and Eclair) described this progression as moving from manual channel management (first generation) through JIT channels (second generation) to splicing (third generation). However, JIT channels remain necessary for the initial onboarding case. Splicing requires an existing channel to modify, so the very first channel for a new user still needs a JIT open or a pre-purchased channel via LSPS1; for more on splicing mechanics, see the splicing deep dive.

## Zero-Conf Trust Assumptions

JIT channels inherit the trust assumptions of zero-conf channels. The LSP funds the channel, so the primary risk is that the LSP double-spends its own funding transaction before it confirms. In practice, the LSP's reputational stake and the fact that double-spending would mean losing its own capital mitigate this risk, and the trust window is short: typically one to three block confirmations (10 to 30 minutes).
In the riskier client-trusts-LSP mode, the client releases the preimage before verifying the funding transaction. A malicious LSP could theoretically accept the preimage to settle the upstream payment without ever broadcasting the funding transaction. This mode should only be used with highly trusted LSPs.

## LSP Dependency

JIT channels create a dependency on the LSP for the initial channel open and ongoing channel availability. If the LSP goes offline, you cannot receive new payments through JIT channels, though the channel itself remains valid and you can force-close to recover funds. The convenience of automatic channel provisioning therefore depends on LSP uptime, a common tradeoff in Lightning liquidity management.

## Fee Variability

JIT channel fees fluctuate with on-chain fee markets. During periods of high mempool congestion, the cost of opening a channel rises, and LSPs pass this cost to users. A payment that costs a few thousand satoshis in fees during low congestion might cost significantly more during a fee spike, and you may be surprised by fee deductions from your first received payment, especially if you are accustomed to near-zero Lightning routing fees.

## Channel Privacy

LSPS2 requires all JIT channels to be private (announce_channel = false). This protects your privacy by keeping channels out of the public network graph, but it also means the LSP is the only routing path to you. All incoming payments must flow through the LSP, giving it visibility into your payment activity, so consider this when choosing an LSP if privacy concerns you.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
