What does off-chain mean?
Off-chain refers to transactions, data, or activities that are recorded outside a blockchain. When something is off-chain, it is not part of the permanent, shared record maintained by the blockchain network.
For example, a trade on a centralised exchange is often recorded in the exchange’s internal database rather than on the blockchain. This makes it off-chain.
How off-chain works
Off-chain activities are processed outside the blockchain network.
Transaction creation
When you initiate a transaction, such as a trade on a centralised exchange, it is recorded in the exchange’s internal system.
Processing
The transaction is processed by the exchange or service provider. This can be faster and cheaper than processing on-chain.
Settlement
The final result of the transaction, such as the updated balances, is recorded in the exchange’s database. The blockchain is only updated if the assets need to be moved on-chain.
Off-chain vs on-chain
Off-chain and on-chain refer to where activities and data are recorded.
Off-chain
Off-chain activities are recorded outside the blockchain. They may be processed faster and with lower fees, but they are not part of the permanent blockchain record.
On-chain
On-chain activities are recorded directly on the blockchain. They are permanent, transparent, and secured by the network.
Examples
An example of an off-chain activity is a trade on a centralised exchange. An example of an on-chain activity is sending cryptocurrency from one wallet to another.
Benefits of off-chain
Off-chain activities offer several benefits.
Speed
Off-chain transactions can be processed faster than on-chain transactions because they do not need to be verified by the entire network.
Lower fees
Off-chain transactions often have lower fees because they do not require the same level of network resources.
Scalability
Off-chain solutions can help blockchains scale by handling more transactions without overloading the network.
Privacy
Off-chain activities can offer more privacy because they are not recorded on a public blockchain.
Limitations of off-chain
Off-chain activities also have some limitations.
Less transparency
Off-chain activities are not recorded on a public blockchain, so they are less transparent.
Centralisation
Off-chain activities are often managed by a central authority, such as an exchange. This can create a single point of failure.
Security risks
Off-chain systems can be vulnerable to hacks or other security issues, especially if they are managed by a third party.
Examples of off-chain activities
There are many types of off-chain activities.
Centralised exchange trades
Trades on a centralised exchange are often recorded in the exchange’s internal database, making them off-chain.
Payment channels
Payment channels, such as the Lightning Network for Bitcoin, allow off-chain transactions that are settled on-chain later.
Sidechains
Sidechains are separate blockchains that are connected to a main blockchain. Transactions on a sidechain are off-chain relative to the main chain.
State channels
State channels allow parties to conduct multiple transactions off-chain and only settle the final result on-chain.

