Skip to main content

State Machine

Definition

A State Machine is a computational model that defines the behavior of a system through a finite number of states and transitions between those states. In blockchain, smart contracts often operate as state machines, where transactions trigger specific state changes on the ledger. Each state represents a configuration of the system’s data, and valid inputs cause a deterministic shift to a new state. This model ensures predictable and auditable execution of decentralized applications.