Post
Persistent, verifiable game data living on Layer 2 blockchains. Your progress exists independent of any single server.
Onchain game state refers to storing game data (ownership, progress, achievements, inventory) directly on a blockchain rather than on a developer-controlled server. The benefits are significant: the data is permanent, publicly verifiable, and survives even if the original developer shuts down. A player's inventory, achievements, and history exist as long as the blockchain exists. Layer 2 solutions like Base make this practical by offering fast, cheap transactions that can handle frequent state updates without the cost of Layer 1 networks. The design challenge is choosing what state belongs onchain versus offchain. Real-time gameplay data (player position, physics state) stays on traditional servers because it needs millisecond updates. Ownership data, economic state, and persistent progression go onchain because they need permanence and verifiability. The best implementations use a hybrid approach: fast offchain gameplay with periodic onchain checkpoints.
Example
A game running on bariOS could store player achievement data and high scores onchain on Base. Even if the original game server goes offline, another developer could build a new client that reads the same onchain state, letting players continue their progress. Your save file literally cannot be deleted because it lives on a public blockchain, not on a server someone can unplug.
Why it matters
Traditional game servers are single points of failure. When a studio shuts down or a publisher kills a game, all player data evaporates. Onchain game state decouples player progress from any single company's survival. It also enables composability, where other games and applications can read and build on existing game data in ways the original developer never anticipated.
Related concepts