On-chain refers to any activity that is executed and recorded directly on a blockchain’s ledger. When something happens on-chain, it is broadcast to the network, validated according to the chain’s rules (such as proof of work or proof of stake), and then written into a block. This creates a permanent, tamper-resistant record that anyone can verify by inspecting the blockchain.
How on-chain transactions work
An on-chain transaction typically involves sending a signed message from one address to another, paying a network fee, and waiting for validators or miners to include it in a block. Once confirmed, the transaction becomes part of the chain’s shared history. On Bitcoin, for example, a transfer of BTC between two wallets is on-chain because it is recorded on Bitcoin’s public ledger. On smart contract platforms, on-chain activity also includes interacting with contracts, such as swapping tokens on a decentralized exchange or minting an NFT, because the contract call and its resulting state changes are recorded on the blockchain.
On-chain vs off-chain
On-chain activity is valued for transparency and finality, but it can be slower and more expensive during periods of network congestion because every participant must be able to verify the outcome. Off-chain activity happens outside the base layer, such as internal exchange ledger updates or certain scaling systems that batch transactions before settling back on-chain. For instance, a payment channel network can enable many rapid transfers off-chain, while only opening and closing transactions are ultimately recorded on-chain.