State
In blockchain terminology, 'state' refers to the current snapshot of all data stored on the network at a specific block height. This includes account balances, contract storage, and code that resides on the chain. As transactions are processed, they mutate the blockchain from one state to the next. The state is what users query when they want to check their token holdings or interact with a decentralized application, representing the 'truth' of the network at any given moment.
Explain Like I'm 12
Think of a bank account ledger. The 'state' is the current amount of money in your account right now. When you spend money, the bank changes that number, which creates a new 'state.' In a blockchain, the entire world's ledger is updated every few seconds.
Why It Matters
The state is the final output of blockchain computation. Maintaining the correct state across thousands of nodes is what provides the network's integrity and consistency.
How It Works
Every transaction that is validated is executed by nodes. This execution changes the values of balances or contract storage in the node's local database. These changes are then committed, moving the system to a new state which is hashed into the next block header.
Real-World Example
The Ethereum State Trie stores all account balances and contract data for the entire network.
Advantages
- Consistent global truth
- Verifiable data history
- Foundation for smart contracts
Limitations
- Grows indefinitely over time
- Expensive to store
- Requires constant syncing
Common Misconceptions
- It is not the same as the transaction history.
- It does not need to be stored by every single user.
Knowledge Explorer
Explore This Concept in the Knowledge Graph
See how State connects to other concepts, books, research, and developer resources.
Related Terms
Account
In the context of blockchain architecture, an account is a persistent entity that holds a balance of native tokens, stores state data, and possesses an associated address derived from a public key. Unlike the UTXO model used by Bitcoin, account-based models—most notably used by Ethereum—track the current state of every participant, allowing for complex smart contract interactions. Accounts serve as the fundamental primitive for identity and value representation, enabling protocols to manage user assets and execution environments securely within the ledger.
Block Header
The metadata section of a block containing commitments and consensus fields such as the previous block reference, timestamp, and state roots.
Ledger
A ledger is a systematic record of all financial or data transactions within a network. In the context of blockchain, it is a distributed ledger, meaning that every node participating in the network maintains an identical copy of the database. This ledger is updated in real-time through consensus, ensuring transparency and accountability. It provides a chronological, immutable record of every action taken within the system, replacing the need for traditional, centralized bookkeeping.
Merkle Tree
A Merkle Tree is a binary tree structure used to summarize and verify the integrity of large datasets. In blockchain, it organizes all transactions in a block by hashing them at the leaf nodes, then pairing and hashing those results up the tree until the root node (Merkle Root) is formed. This hierarchical structure allows the network to efficiently prove that any given piece of data is included in a set without requiring the full set to be processed.
Merkle Tree
A binary tree data structure where each leaf node is a hash of a data block (e.g., a transaction), and each parent node is a hash of its children. The root hash summarizes all data, enabling efficient and verifiable inclusion proofs without downloading the entire dataset.