State Transition Function
Web3 / blockchain technology
A state transition function is the deterministic set of rules that governs how a blockchain's state evolves when new blocks are added to the chain. It takes the current state of the network (account balances, smart contract data, nonces, etc.) and a new block of transactions as inputs, applies the transactions according to consensus rules, and outputs the updated state. This function is critical because it ensures all nodes in the network can independently verify that a block is valid by reproducing the same state changes. Without a consistent state transition function, nodes would disagree on the network's true state, breaking consensus. Example: Ethereum's state transition function processes transactions in a block sequentially, updating account balances, executing smart contract code via the Ethereum Virtual Machine (EVM), and applying gas fees. When a user sends ETH or calls a smart contract, the state transition function atomically applies these changes to the global state tree. Why it matters for blockchain technology: The state transition function is the foundation of blockchain security and determinism. It enables any node to validate blocks without trusting others and ensures all participants operate from the same authoritative ledger, making it impossible for invalid state changes to be accepted across the network.
Explore the full Web3 Glossary — 2,062+ expert-curated definitions. Need guidance? Talk to our consultants.