On-chain
On-chain refers to transactions or data that are recorded directly on the blockchain’s main ledger. Once a transaction is processed on-chain, it is permanently etched into the record, making it immutable and verifiable by any participant. On-chain activities are broadcast to the entire network and require consensus from miners or validators to be confirmed. Because this involves global consensus, on-chain transactions are typically slower and more costly compared to off-chain methods but offer the highest level of security.Definition
On-chain refers to transactions or data that are recorded directly on the blockchain’s main ledger. Once a transaction is processed on-chain, it is permanently etched into the record, making it immutable and verifiable by any participant. On-chain activities are broadcast to the entire network and require consensus from miners or validators to be confirmed. Because this involves global consensus, on-chain transactions are typically slower and more costly compared to off-chain methods but offer the highest level of security.Simple explanation
On-chain is like writing a transaction in a giant, public, permanent ledger that everyone can see and no one can erase. It is the most secure way to exchange value, but it can be slow and expensive when many people use it at once.Why it matters
On-chain transactions provide the ultimate proof of settlement. They are the standard for trustless exchange, as they do not require any intermediaries to confirm that the asset has been moved.How it works
The user signs a transaction and sends it to the network. It moves to the mempool, where nodes pick it up. Once validators confirm it, it is cryptographically bundled into a block and linked to the previous block. This update is then propagated, updating the state of every node in the network.Real-world example
Sending Bitcoin directly to another wallet address is an on-chain transaction that is settled on the main Bitcoin blockchain.Advantages
- Maximum security and decentralization
- Immutable public record of activity
- Trustless settlement without intermediaries
Limitations
- Higher transaction fees during congestion
- Limited transaction throughput speed
- Public transparency can compromise privacy
Common misconceptions
- On-chain does not mean ‘instant’; it is limited by block times.
- People sometimes think all blockchain activity is on-chain, but layer-2 solutions prove that much can be done off-chain.
Related knowledge
- Consensus — term
- Immutability — term
- Layer 1 — term
- Mainnet — term
- Transaction — term
Canonical knowledge ID:
glossary:on-chain