2 min to read.
On-Chain
Describes transactions and data that are recorded directly on a blockchain and verified by its network.
What Does On-Chain Mean?
On-chain describes anything that is recorded directly on a blockchain. An on-chain transaction is broadcast to the network, checked by its nodes, included in a block and stored as part of the permanent, public ledger. The opposite is off-chain, where activity takes place outside that ledger.
How it works
A user signs a transaction and sends it to the network. It waits in the mempool until a miner or validator includes it in a block. Once the block is accepted, the transaction has one confirmation, and each following block adds another. On most networks the sender pays a fee, because space in blocks is limited.
Besides simple payments, on-chain activity includes creating and calling smart contracts, issuing tokens and casting governance votes that a contract counts directly.
Example
Someone withdraws bitcoin from an exchange to a personal wallet. The withdrawal is an on-chain transaction: it has a transaction ID, can be looked up in a block explorer by anyone, and after several confirmations it is practically irreversible.
Why it matters
On-chain settlement is what gives a blockchain its core properties. The record cannot be quietly altered, anyone can verify it, and no intermediary has to be trusted to keep the books. Ownership that is recorded on-chain is controlled by private keys alone.
On-chain analysis
Because the ledger is public, anyone can study it. On-chain analysis looks at data such as the number of active addresses, transaction volumes, fees and the movement of coins between known entities. Researchers, companies and law-enforcement agencies use it.
Trade-offs and misunderstandings
- On-chain transactions are slower and more expensive than off-chain ones, particularly when the network is busy.
- They are transparent. Addresses are pseudonymous, and patterns of activity can often be linked to people.
- They cannot be undone. A payment to a wrong address or a scammer stays where it is.
- Being on-chain proves that a record has not been altered, not that the information in it was true in the first place.