Onchain Data
What Is Onchain Data?
Onchain data is the information recorded directly on a blockchain. Every transaction confirmed by the network, every smart contract interaction, every token transfer, and every balance update becomes part of that chain’s permanent ledger. As the record is public and immutable, anyone running a node can read it, and no single party can unilaterally alter it after the fact.
This distinguishes onchain data from the data held in private company databases, which only the entity controlling it can verify. A blockchain’s ledger is a shared source of truth: the same record is available to every participant simultaneously.
What Does Onchain Data Contain?
The core building blocks are consistent across most blockchains. Blocks are the containers, each timestamped and linked to the one before it. Transactions record value moving from one address to another. Smart contract logs capture what happened inside a program. Balances reflect what each address holds at a given point in time.
What onchain data does not contain is interpretation. While a transaction shows that one address sent tokens to another, it does not identify who controls either address or explain why the transfer happened. Converting raw records into something meaningful requires decoding smart contract outputs, labeling known addresses, and standardizing formats across chains.
Onchain Data vs. Offchain Data
Not everything relevant to a blockchain lives on it. Offchain data includes prices from centralized exchanges, identity records, and any computation performed outside the network. Both types are useful, and most serious analysis combines them.
The key difference is verifiability. Anyone with access to a node can independently check onchain data, whereas offchain data can only be verified by the party holding it.