What Is On-Chain vs Off-Chain?
On chain vs off chain explained: what each means for transactions, data and governance, the trade-offs in cost, speed, privacy and trust, with clear examples.
On-chain refers to anything recorded directly on a blockchain's public ledger, such as transactions, smart contract data and votes, while off-chain refers to activity that happens outside that ledger, such as trades inside a centralized exchange, payments through channels that settle later or data stored on ordinary servers. On-chain is transparent and verifiable but slower and costlier; off-chain is faster and cheaper but usually requires more trust.
The distinction comes up everywhere in crypto: exchange balances, layer-2 networks, NFT metadata, governance votes and price oracles. Knowing whether something is on-chain or off-chain tells you who you are trusting, what you can verify yourself and what it will cost. This guide explains both with practical examples.
What On-Chain Means
When a transaction is on-chain, it is broadcast to the network, validated by nodes, included in a block and stored permanently in the ledger. Anyone can look it up using a block explorer. Examples include:
- Sending bitcoin from one wallet to another.
- Swapping tokens on a decentralized exchange.
- Minting an NFT on Ethereum.
- Casting a governance vote recorded in a smart contract.
On-chain records are transparent and very difficult to change, but every transaction pays a fee and must wait for confirmation. See what is a block explorer.
What Off-Chain Means
Off-chain activity happens outside the blockchain's ledger. Examples include:
- Centralized exchange trades. When you buy BTC on an exchange, the exchange updates its own database. No blockchain transaction occurs until you withdraw.
- Payment channels. The Lightning Network lets two parties exchange many payments off-chain, settling only the final balance on Bitcoin. See what is Bitcoin's Lightning Network.
- Off-chain data storage. Many NFTs store images and metadata on regular servers or decentralized storage, with only a pointer on-chain.
- Off-chain voting. Some DAOs gather votes off-chain with signed messages and then execute results separately.
- Oracles. Price data is gathered off-chain before being delivered on-chain.
Side-by-Side Comparison
| Feature | On-chain | Off-chain |
|---|---|---|
| Where it is recorded | The blockchain ledger | Databases, servers, private channels |
| Who verifies it | The network's nodes | The operator or participants |
| Transparency | Public and auditable | Often private or partial |
| Speed | Limited by block times | Can be near-instant |
| Cost | Network fees per transaction | Often lower or free |
| Reversibility | Very hard once confirmed | Depends on the operator |
| Trust required | Mainly in the protocol | In the operator or counterparty |
| Privacy | Pseudonymous but public | Can be more private |
Hybrid Systems
Many crypto systems combine the two to get speed without giving up security entirely.
Layer-2 rollups
Rollups execute transactions off the main chain, then post data and proofs back to it. Users get lower fees and faster confirmations, while the main chain anchors security. Read rollups explained.
Payment channels
Channels lock funds on-chain, allow unlimited off-chain updates between participants, then settle the final state on-chain.
Off-chain order books with on-chain settlement
Some decentralized trading platforms match orders off-chain for speed, then settle trades on-chain so users keep custody.
Off-chain signatures
Wallets can sign messages off-chain, such as permits or marketplace listings, that are later used on-chain. This saves fees but is a common phishing vector, since a signature can authorize transfers. See ice phishing and permit signatures.
Why the Difference Matters to You
- 1Custody. An exchange balance is an off-chain record of what the exchange owes you, not coins in your wallet.
- 2Verification. On-chain claims, such as token supply or reserves, can be checked independently; off-chain claims require trusting reports.
- 3Fees and speed. On-chain actions cost gas and take time; off-chain actions may be instant.
- 4Permanence. NFT art stored off-chain can disappear if the server goes down.
- 5Security. Off-chain signatures can be as dangerous as on-chain transactions if they authorize transfers.
- 6Privacy. On-chain activity is public forever; off-chain activity may be private but relies on the operator's data protection.
How to Check Whether Something Is On-Chain
You do not have to take a project's word for what is on-chain. A few simple checks help:
- 1Look for a transaction hash. A genuine on-chain transfer has a unique transaction ID you can paste into a block explorer. If someone claims to have sent you funds but cannot provide one, the transfer has not happened on-chain.
- 2Check the contract. For tokens, NFTs or protocols, find the contract on a block explorer and confirm that balances, supply or votes are recorded there.
- 3Inspect NFT metadata. Many explorers and marketplaces show where an NFT's image and metadata are stored, such as an on-chain encoding, decentralized storage or an ordinary web server.
- 4Read the documentation. Projects that use off-chain components, such as order matching, sequencers or voting tools, usually explain how results reach the chain.
- 5Compare claims with data. If a platform reports reserves or activity, check whether the figures can be matched to on-chain addresses.
These checks are especially useful when someone shows you balances or "pending transfers" on a website, which may be nothing more than off-chain numbers on a page.
Common Misconceptions
- "Everything in crypto is on the blockchain." Many crypto services run largely off-chain.
- "Off-chain means insecure." Off-chain systems can be secure; they simply rely on different trust assumptions.
- "On-chain means anonymous." On-chain activity is pseudonymous and can often be linked to identities through analysis.
- "A signature isn't a transaction, so it's safe." Off-chain signatures can authorize on-chain transfers later.
Bottom line
On-chain means recorded and verified on the blockchain itself; off-chain means handled elsewhere, usually faster and cheaper but with more trust in a third party. Most real-world crypto systems mix both. Whenever you use a service, ask which parts are on-chain and which are not, because the answer tells you what you can verify and whom you are trusting.
Частые вопросы
What does on-chain mean?
On-chain means something is recorded directly on a blockchain's public ledger, such as a transaction, a smart contract's state or a governance vote. On-chain records are visible to anyone, are verified by the network's nodes and are very hard to change once confirmed.
What does off-chain mean?
Off-chain means something happens outside the blockchain's ledger, such as a trade inside a centralized exchange's database, a payment through a channel that settles later, or data stored on a regular server. Off-chain activity can be faster and cheaper but usually involves more trust in whoever records it.
Are trades on a crypto exchange on-chain?
Trades between users on a centralized exchange are usually off-chain. The exchange updates its internal database, and nothing is written to the blockchain. Only deposits to and withdrawals from the exchange appear as on-chain transactions.
Are layer-2 transactions on-chain or off-chain?
Both, in a sense. Layer-2 networks like rollups execute transactions off the main chain, which makes them faster and cheaper, but they post data or proofs back to the main chain, which anchors their security. They are on-chain for the layer-2 but off-chain from the main layer's perspective.
