What does on-chain mean?
On-chain refers to transactions, data, or activities that are recorded directly on a blockchain. When something is on-chain, it is part of the permanent, shared record maintained by the blockchain network.
For example, when you send cryptocurrency from one wallet to another, the transaction is recorded on the blockchain. This makes it on-chain.
How on-chain works
On-chain activities are processed and recorded by the blockchain network.
Transaction creation
When you initiate a transaction, such as sending cryptocurrency, it is created with details like the sender, recipient, amount, and time.
Verification
The transaction is broadcast to the network. Computers on the network, called nodes, verify that the transaction is valid.
Inclusion in a block
Once verified, the transaction is included in a block along with other transactions.
Adding to the blockchain
The block is added to the blockchain, making the transaction a permanent part of the shared record.
On-chain vs off-chain
On-chain and off-chain refer to where activities and data are recorded.
On-chain
On-chain activities are recorded directly on the blockchain. They are permanent, transparent, and secured by the network.
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.
Examples
An example of an on-chain activity is sending cryptocurrency from one wallet to another. An example of an off-chain activity is a trade on a centralised exchange, where the transaction is recorded in the exchange’s internal database.
Benefits of on-chain
On-chain activities offer several benefits.
Transparency
All on-chain transactions are recorded on the blockchain and can be viewed by anyone. This provides transparency and accountability.
Security
On-chain transactions are secured by the blockchain network. Once confirmed, they are difficult to alter.
Immutability
Once a transaction is recorded on the blockchain, it cannot be changed or deleted. This creates a permanent record.
Decentralisation
On-chain activities are maintained by a network of computers rather than a single central authority. This reduces the risk of a single point of failure.
Limitations of on-chain
On-chain activities also have some limitations.
Speed
On-chain transactions can be slower than off-chain activities, especially during periods of high network activity.
Fees
On-chain transactions often require fees, which can vary depending on network congestion.
Scalability
Blockchains can face scalability issues, meaning they may not be able to handle a large number of transactions quickly.
Examples of on-chain activities
There are many types of on-chain activities.
Cryptocurrency transfers
Sending cryptocurrency from one wallet to another is an on-chain activity.
Smart contract execution
When a smart contract is executed on a blockchain, it is an on-chain activity.
Token minting
Creating new tokens on a blockchain is an on-chain activity.
Decentralised exchange trades
Trades on a decentralised exchange (DEX) are recorded on the blockchain, making them on-chain activities.

