- Homepage /
- Blog /
- Onchain Vs Offchain
Onchain vs Offchain: What’s the Difference?
Onchain transactions are recorded on the blockchain. Offchain transactions live in a private ledger. See how they differ, where each one appears, and which one you should use.
An onchain transaction is recorded on a blockchain. It is public, permanent, final, and verifiable. An offchain transaction is recorded outside the blockchain, usually in an exchange’s internal ledger or a payment channel. Some writers spell the terms on-chain and off-chain. The meaning is the same.
The one-line difference: onchain transactions are written to a public ledger that anyone can check; offchain transactions exist only in records the parties control.
You already use both. Every trade on an exchange settles offchain. Every withdrawal to your own wallet settles onchain. If you trade, hold, or build crypto, the distinction matters. For founders, it also matters for their crypto license.
What is an onchain transaction?
An onchain transaction is broadcast to a blockchain network. Validators confirm it, and the record is added to the blockchain. Anyone can then view it: the sender’s address, the receiver’s address, the amount, the time. Block explorers (websites that display the blockchain, such as mempool.space or Etherscan) show this information to everyone.
An onchain record has three properties:
- Public. Anyone can read it. No permission is needed.
- Permanent. It cannot be edited or deleted.
- Final. Once confirmed, it cannot be reversed by anyone. Not by a bank. Not by a company. Not by the sender.
Finality is the property that matters most. An onchain transaction has no chargeback. Send it, and it stands.
A DeFi swap is onchain. An NFT mint is onchain. A withdrawal from an exchange to a wallet you control is onchain. The wallet that receives such transfers is called an onchain wallet. Our guide to what an onchain wallet is explains how these wallets work and where the risks sit.
What is an offchain transaction?
An offchain transaction is recorded outside the blockchain. The record lives in a system the parties control: an exchange’s internal ledger, a payment channel, or a sidechain or rollup that posts summaries to the main chain.
Offchain is not fake. It is a legitimate way to settle value, and for many transactions it is the right one.
The clearest example is an exchange. The balance you see in an exchange app is an entry in the exchange’s database. When you trade, the exchange updates its ledger: one customer’s balance falls, another’s rises. No blockchain record is created. Exchanges settle most trades this way, because it is instant and the per-trade cost is near zero. The blockchain is involved only when you deposit or withdraw.
The Lightning Network is the second example. Lightning is a payment channel system on Bitcoin. Two parties open a channel with an onchain transaction, then send payments offchain by updating the channel balance. Only when the channel closes does the result return to the blockchain. Lightning payments settle in seconds and cost fractions of a cent.
Both examples share one property: someone must keep the ledger honest. For an exchange, that someone is the exchange. Your exchange balance is a claim against the company, not a record on a public chain. Most of the time the claim is honored. When the company fails, the claim can fail with it.
Onchain vs offchain at a glance
| Onchain | Offchain | |
| Where the record lives | Public blockchain | Private ledger (exchange database or payment channel) |
| Finality | Final after confirmation; cannot be reversed | Reversible; the operator controls the record |
| Speed | Minutes, depending on the network | Instant or near-instant |
| Cost | Network fee (gas) | Usually free, or a small platform fee |
| Privacy | Public (anyone can view it) | Private (only the operator and the parties see it) |
| Who holds the funds | You, in your own wallet | The exchange or platform |
| Reversal risk | Essentially none after confirmation | The platform can freeze, reverse, or block |
| Examples | DeFi swap, NFT mint, exchange withdrawal | Exchange trade, Lightning payment |
Real examples: where each one shows up
- Transfer between two accounts at the same exchange: offchain. The exchange changes two numbers in its ledger. No blockchain record exists.
- Withdrawal to a self-custody wallet: onchain. The exchange broadcasts the transaction, and the network records it permanently.
- Lightning payment: offchain. The channel balance updates. Only opening and closing the channel touch the blockchain.
- DeFi swap: onchain. A smart contract executes the trade, and the blockchain records the result.
- NFT mint: onchain. The token’s creation is a transaction on the blockchain.
One test settles most cases: if a block explorer shows the transaction, it is onchain. If only a company’s app shows it, it is offchain.
Common questions about onchain and offchain
What is the difference between onchain and offchain?
The difference is where the record lives and who can verify it. Onchain transactions are written to a public blockchain. Anyone can check them. Offchain transactions exist only in a ledger the parties control. The terms describe the record, not the asset itself: onchain crypto settles on the blockchain, and offchain crypto settles in a separate ledger. Onchain is slower and carries a network fee, but the record is final and verifiable. Offchain is fast and cheap, but the record depends on the operator.
Is Binance onchain or offchain?
Both. Trades between Binance users are offchain entries in Binance’s internal ledger. Deposits and withdrawals are onchain transactions recorded on the blockchain. The same is true of Bitget and other exchanges: the balance inside the app is offchain, and the movement of funds to or from a blockchain address is onchain.
Can I withdraw from an Onchain wallet?
If you mean the wallet product named “Onchain,” such as Crypto.com’s non-custodial Onchain Wallet: yes. A withdrawal from that wallet is an onchain transaction. You sign it with your private key, the network confirms it, and the blockchain records it permanently. The same is true of any self-custody wallet. The product name does not change how the transaction works.
Which should you use?
Most people use both, and the choice depends on the transaction.
- Trade on an exchange. Offchain settlement is fine here. Activity is frequent, balances are working balances, and speed matters.
- Hold what you intend to keep. Move it onchain to a wallet you control. Your exchange balance is a promise; an onchain balance is a record you hold.
- Send large or important payments. Use onchain settlement, where the record is final and provable.
- Send small, frequent payments. Use offchain systems such as Lightning where the network supports them, so you avoid network fees on every payment.
The trade-off in one line: offchain buys speed and low cost; onchain buys control, finality, and verifiability. Pick the property you need for that specific transaction.
Why settlement design matters if you build a crypto business
Where a transaction settles is a design decision. It decides what customers can verify, what regulators can inspect, and what kind of licensed business you run.
An onchain balance is verifiable from the outside. Anyone (customer, auditor, regulator) can check the blockchain and see the funds. An offchain balance is a claim. The customer sees a number in an app, and the company’s ledger says the number is real. When the company fails, the claim can fail.
FTX is the case. In November 2022, FTX collapsed. Customer balances were entries in FTX’s internal ledger, and the assets behind those entries were not where customers believed they were. Withdrawals froze overnight. Customers waited more than two years for repayment, and most recovered 100–120% of the dollar value of their claims in cash, not the crypto they deposited.
Proof of reserves is the industry’s partial answer. Some exchanges publish wallet addresses and independent attestations showing they hold the assets they claim. The limit: a proof of reserves is a snapshot of assets. It does not prove liabilities, and it does not stop a company from moving funds the day after the report. It lowers trust risk; it does not remove it.
Regulation draws the same line. The EU Travel Rule, Regulation (EU) 2023/1113, requires crypto-asset service providers to send originator and beneficiary information with every crypto-asset transfer in which a provider is involved on either side. That includes transfers to or from self-hosted wallets. There is no minimum amount. If you build an exchange or a payment product, this applies to your transfers.
MiCA, Regulation (EU) 2023/1114, defines two services that sit exactly on this line. Custody and administration of crypto-assets (Article 3(1)(16)(a)) is a regulated service. Transfer services for crypto-assets on behalf of clients (Article 3(1)(16)(j)) is a regulated service. Offer either commercially in the EU, and you must hold authorization as a crypto-asset service provider (CASP). MiCA has applied in full since 30 December 2024.
The design question is concrete: who controls the assets, and who moves them. That answer decides which services you provide and which license you need. Regulators can audit an offchain ledger, but they cannot verify it from the outside the way anyone can verify a blockchain record.
If you are building an exchange, wallet, or payment product, company formation and licensing need to reflect where your settlement actually happens. LegalBison plans the full path (jurisdiction strategy, CASP or VASP licensing, compliance programs) through a single point of contact.
If you want to map your licensing pathway before launch, schedule a free consultation.