A state channel enables participants to exchange arbitrary state updates off-chain with blockchain-level security guarantees, only settling on-chain when the channel closes or disputes arise. The process begins with participants locking funds or state into an on-chain smart contract that defines the rules for valid state transitions. Participants then exchange cryptographically signed messages representing new states: game moves, balance changes, or any data the channel contract can validate. Each message includes a sequence number proving recency. These exchanges happen instantly without blockchain latency or gas costs. The magic happens through the dispute mechanism: if participants disagree, either can submit their latest signed state to the chain. A challenge period allows the counterparty to submit a more recent state. The contract enforces the most recent valid state, protecting honest participants. State channels achieve extraordinary scalability, unlimited transactions between opening and closing, but have limitations. They require all participants to be online or delegate to watchtowers that can submit states on their behalf. They work best for repeated interactions between known parties; one-time interactions don't justify channel setup costs. Channel disputes can freeze funds during challenge periods. The Lightning Network (Bitcoin) and Raiden (Ethereum) demonstrate payment channel networks; generalized state channels extend the concept beyond simple payments to arbitrary state machines.
Back to Glossary