2 min to read.
Off-Chain
Describes transactions, data or computation that take place outside a blockchain's own ledger.
What Does Off-Chain Mean?
Off-chain refers to anything that happens outside the main ledger of a blockchain. An off-chain transaction changes who owns what without being recorded as an individual transaction in a block. The opposite is on-chain, where every transaction is validated by the network and stored permanently.
How it works
Off-chain activity comes in several forms, with very different trust assumptions.
- Payment channels. Two parties lock funds on-chain and then exchange signed balance updates privately. Only the opening and closing are recorded on the blockchain. The Lightning Network is built this way, and the blockchain can still enforce the latest balance.
- Custodial ledgers. When two customers of the same exchange trade or transfer, the exchange only updates its internal database. Nothing moves on the blockchain until someone withdraws.
- Second-layer networks and sidechains. Transactions are processed on a separate system, which reports summaries or proofs back to the main chain.
- Off-chain data and voting. Files, price information or governance polls are kept elsewhere, sometimes with only a hash or a result stored on-chain.
Example
A user pays a friend who uses the same exchange. The transfer is instant and free because it is merely a change in the exchange's own records. Later the friend withdraws to a personal wallet; only that withdrawal appears on the blockchain.
Why it matters
Block space is scarce, and on-chain transactions cost fees and take time to confirm. Moving activity off-chain makes small and frequent payments practical and takes load off the base layer. It can also improve privacy, since individual payments are not published.
Risks and trade-offs
- Off-chain balances at a custodian are claims on that company. If it is hacked, fails or freezes withdrawals, the blockchain offers no protection.
- Systems that are enforceable on-chain, such as payment channels, require users or their software to stay alert and keep backups.
- Off-chain records are not publicly verifiable in the same way.
Common misunderstanding
"Off-chain" does not automatically mean unsafe or centralised; it depends on whether the blockchain can still enforce the outcome.