On-Chain vs Off-Chain
Settling on the shared ledger for finality, versus settling privately and touching the chain later.
Basically
On-chain transactions go directly onto Bitcoin's blockchain. Off-chain transactions happen on secondary layers and settle on the blockchain later.
Key Takeaways
- On-chain transactions are broadcast to the Bitcoin network, included in a block by miners, and permanently recorded on the blockchain. They provide the highest security guarantees but are limited to roughly 7 transactions per second, with fees that fluctuate based on network demand.
- Off-chain transactions happen on Layer 2 protocols like Lightning, statechains, and sidechains. They settle to the base layer periodically, enabling sub-second speeds and sub-cent fees while inheriting Bitcoin's security.
- Your choice depends on the use case. Use on-chain for large settlements and cold storage movements, and off-chain for everyday payments, micropayments, and high-frequency transfers.
What Is On-Chain vs Off-Chain?
On-chain and off-chain refer to the two fundamental ways Bitcoin transactions can be processed. An on-chain transaction is broadcast to the entire Bitcoin peer-to-peer network, validated by miners through Proof of Work, included in a block, and permanently recorded on the blockchain. An off-chain transaction happens outside the main blockchain, typically through a Layer 2 protocol, and only touches the base layer when participants open, close, or settle their positions.
Bitcoin's base layer was designed for security and decentralisation, not raw throughput. With a block produced roughly every 10 minutes and a maximum block weight of 4 million weight units introduced by SegWit, the network can process approximately 3 to 7 transactions per second. Traditional payment networks like Visa handle around 1,700 TPS on average, while off-chain protocols close this throughput gap without compromising Bitcoin's base-layer security model.
How On-Chain Transactions Work
Every on-chain Bitcoin transaction follows the same lifecycle, from creation to finality. The transaction is permanently recorded on the blockchain once the process is complete.
The widely accepted standard for practical irreversibility is 6 confirmations, or roughly 60 minutes. Reversing a transaction buried 6 blocks deep would require an attacker to control more than 50% of the network's total hashrate. A 51% attack of this kind would be prohibitively expensive on Bitcoin.
On-Chain Fee Dynamics
On-chain transactions require mining fees to incentivise block inclusion. Fees follow a market mechanism: when demand for block space exceeds supply, fees rise. A typical transaction of around 250 virtual bytes costs approximately $1 to $5 at moderate congestion, but fees can spike above $20 during periods of high demand.
Fee estimation matters for every on-chain transaction. Setting fees too low risks the transaction sitting unconfirmed in the mempool for hours or days, while setting them too high wastes money. Tools like mempool explorers help you choose appropriate fee rates based on current network conditions.
How Off-Chain Transactions Work
Off-chain protocols move the bulk of transaction processing away from the blockchain while anchoring security to it. The specific mechanism varies by protocol, but the general principle is consistent: lock funds on-chain, transact freely off-chain, then settle back on-chain when needed.
Payment Channels (Lightning Network)
The Lightning Network uses bidirectional payment channels. Two parties lock bitcoin in a multisig address via an on-chain funding transaction, then exchange signed commitment transactions off-chain to update balances. Each update invalidates the previous state, preventing cheating, and participants broadcast a closing transaction to settle final balances on-chain when they are done.
Payments can route through multiple channels using HTLCs and onion routing. You can pay parties that do not share a direct channel with you. Lightning payments settle in under one second, with fees typically below 50 satoshis.
Statechains (Spark)
Spark uses a statechain model where UTXO ownership transfers happen off-chain through cryptographic key rotation using FROST threshold signatures. Unlike Lightning, Spark does not require payment channels or liquidity management. Users hold pre-signed exit transactions that allow unilateral withdrawal to Layer 1 at any time, preserving self-custody guarantees.
Sidechains (Liquid Network)
The Liquid Network is a federated sidechain where users peg bitcoin into the network and receive equivalent L-BTC tokens. Liquid offers one-minute block times and confidential transactions. It relies on a federation of functionaries with an 11-of-15 signing threshold rather than Bitcoin's full Proof of Work security.
When to Use On-Chain
On-chain transactions are the right choice when security and permanence matter most. Use them for large settlements and cold storage movements.
When to Use Off-Chain
Off-chain transactions excel for speed-sensitive, cost-sensitive, or high-frequency use cases. Use them for everyday payments, micropayments, and high-frequency transfers.
Why It Matters
The on-chain vs off-chain distinction is not a binary choice: most Bitcoin users will use both, depending on the situation. You might receive your salary on-chain and spend it via Lightning at a coffee shop. A business might settle large invoices on-chain while processing customer payments through an off-chain protocol like Spark.
Off-chain protocols support Bitcoin's viability as a payment network. Without them, Bitcoin's 3 to 7 TPS throughput limits it to roughly 200,000 to 600,000 transactions per day, far too few for global adoption. The Lightning Network alone handled over 8 million monthly transactions in early 2025, with volume growing 266% year-over-year.
Spark takes off-chain scaling further by eliminating the channel management complexity that has historically been a barrier to Lightning adoption. With no channels to open or manage, no requirement for recipients to be online, and native support for stablecoins like USDB, Spark provides off-chain payments with self-custodial guarantees that rival on-chain security. For a deeper comparison of Bitcoin Layer 2 approaches, see the Bitcoin Layer 2 comparison.
The Complementary Relationship
On-chain and off-chain are not competing approaches: they are complementary layers of the same system. On-chain provides the security foundation and final settlement layer, while off-chain provides the speed and scalability needed for everyday use. Together, they form a complete payment stack where Bitcoin can serve both as a store of value settled on-chain and a medium of exchange transacted off-chain. For a deeper look at how payment channels enable this architecture, see the payment channels deep dive.
This 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.