network

On-Chain / Off-Chain

On-chain transactions are recorded directly on the Bitcoin blockchain and are publicly verifiable. Off-chain transactions happen outside the blockchain, such as on the Lightning Network, trading security and permanence for speed and lower fees.

An on-chain transaction is one that is broadcast to the Bitcoin network, validated by nodes, included in a block, and permanently written to the blockchain. Every on-chain transaction is public, verifiable by anyone, and immutable once it has received enough confirmations. On-chain settlement is the most secure and trustless form of Bitcoin transfer because it relies entirely on the protocol and its distributed consensus, with no counterparty risk after confirmation.

Off-chain transactions happen outside the main blockchain. The most prominent example is the Lightning Network, a payment layer built on top of Bitcoin that enables near-instant transactions at very low fees. Parties open a payment channel, exchange multiple transactions off-chain, and only settle the final balance on the blockchain. Other off-chain mechanisms include custodial exchange balances, where users trust a third party to manage their funds, and sidechains.

The trade-off between the two approaches is clear. On-chain transactions offer maximum security, finality, and transparency, but are slower and more expensive for small amounts due to block space competition. Off-chain solutions provide speed and cost efficiency at the price of introducing additional layers, trust assumptions, or counterparty risk. Both serve different needs within the Bitcoin ecosystem and can complement each other depending on the use case.

Frequently asked questions