Book a free call

How Do Fully On-Chain Games Work?

Fully on-chain games run their rules, state and logic on a blockchain, so the game keeps working without a company server. Here is how they work and where they fit.

Hertiv engineering teamReviewed by a senior engineer
8 min read
How Do Fully On-Chain Games Work?
On this page

Short answer

Fully on-chain games are games whose rules, state and logic live entirely on a blockchain, so every move is recorded and checked by the network rather than by a server run by the game's maker. The client only shows the world and sends the player's moves.

What is a fully on-chain game?

A fully on-chain game is a game whose rules, state and logic live entirely on a blockchain, so every move, trade and outcome is recorded and checked by the network itself. Nothing about how the game works depends on a server run by the game's maker.

Most blockchain games only put part of the game on-chain. The items, currency or ownership records live on a blockchain, while the game itself runs on normal servers. In a fully on-chain game, the game itself is the smart contract. The client a player sees is only a window into that contract: it reads the state from the chain and sends the player's moves back as transactions.

This design has a name in the community: autonomous worlds. The idea is that the game keeps running and keeps its rules even if the team that built it stops working on it, because no company server is needed to keep the world alive. Anyone can build a new client, a new interface or a new tool that talks to the same game contract.

Fully on-chain games are still a small corner of gaming. They suit turn-based games, strategy games and slow worlds far better than fast action games, because every move has to wait for the chain to confirm it. The trade-off is the point of the design: the game is open, permanent and owned by no single operator.

How is a fully on-chain game different from a blockchain game?

A fully on-chain game puts the whole game on the chain, while a typical blockchain game puts only the assets there and keeps gameplay on a server. That difference decides who can change the game, stop it, or build on it.

Fully on-chain gameTypical blockchain gameTraditional game
Game logicSmart contracts on-chainCompany serversCompany servers
Game stateOn-chain, publicPartly on-chain, partly on serversOn company servers
Items and currencyOn-chain tokensOn-chain tokensCompany database
Can the maker shut it down?No, the contract keeps runningYes, by stopping the serversYes, by stopping the servers
Can anyone build a new client?Yes, the state is publicOnly with the maker's toolsNo
Speed of playSlow, one move per confirmationFast, server decidesFast, server decides

The table shows why the two designs fit different games. A shooter cannot wait for a chain confirmation on every move, while a strategy game or a slow world can, and gains permanence and openness in return.

Players often mix the two up, because both use wallets and tokens. The test is simple: if the company behind the game closed its servers tomorrow, would the game still work? For a fully on-chain game the answer is yes.

For other blockchain games the answer is usually no, because the gameplay itself lived on them. The wider picture of how these parts fit together is covered in what a blockchain gaming ecosystem is.

What runs on-chain, and what stays off-chain?

In a fully on-chain game, the parts that decide the game run on-chain: the rules, the state of the world, the players' moves and the outcomes. Everything else — the graphics, the sound and the interface — runs off-chain in the client, because the chain cannot render pictures or play audio.

The rules are written as smart contracts. A contract holds the map, the players' positions, the items they own and the resources they control. When a player takes an action, the client sends a transaction to the contract, the contract checks the move against the rules, and the new state is written to the chain. If a move breaks a rule, the contract rejects it, so cheating by editing the client achieves nothing.

Randomness needs care. A contract cannot roll dice by itself, because every node must reach the same result. Games use a random value supplied with the move, or one drawn from a later block, and designers plan around the fact that a player who sees the value early may gain an edge.

Heavy work stays off-chain where possible. The client renders the world, plays sounds and caches the chain state so the game feels responsive. The boundary is practical: anything that must be trusted and permanent goes on-chain, and anything that is only presentation stays in the client.

What are on-chain game engines?

On-chain game engines are frameworks that give developers the building blocks for a fully on-chain game, so they do not have to write every contract from scratch. The best known are MUD, built by Lattice, and Dojo, built for the Starknet ecosystem. Both are open-source and in use by working games today.

An engine provides three things. First, a way to store the game state as tables on-chain, so the world is a set of records any client can read. Second, a way to define systems — the rules that check a move and write the result back. Third, an indexer, which watches the chain and keeps a fast copy of the state for clients to query.

The engine also shapes how the game is built. Developers describe the world as data — positions, resources, ownership — and write small rule functions that change that data. The on-chain version is slower and more limited, but anyone can read the state and check that the rules were followed.

Choosing an engine means choosing a chain. MUD targets Ethereum-compatible chains, while Dojo targets Starknet, and the two have different costs, speeds and tooling. A team picks the engine whose chain fits the game's pace and budget, then builds the game on top of it. For teams weighing the wider build, dApp development covers the same client-and-contract pattern in other kinds of apps.

What can fully on-chain games do that others cannot?

Fully on-chain games can do three things other games cannot: they keep running without their maker, they let anyone build on top of them, and they let players check every result for themselves.

Permanence is the first. A traditional game dies when its servers close, and with it goes the world, the items and the history. A fully on-chain game keeps its state on a public chain, so it continues as long as the chain does, and a community can keep it alive by building a new client.

Open building is the second. Because the state and the rules are public, anyone can write a new client, a new tool or even a new game that reads the same world, without asking the original maker for access. Modding becomes a normal part of the game instead of a fight against the developer.

Verifiability is the third. Every move and outcome is a transaction anyone can inspect, so a disputed result can be checked rather than argued about. That matters most where items have real value, because a player can prove an item is genuine without trusting the maker's word.

These strengths come with real limits. Moves are slow, because each one waits for the chain. And everything is public, so a game cannot hide information unless it is designed to. Fully on-chain games trade speed and secrecy for permanence, openness and proof.

Example (hypothetical): a turn-based strategy game goes on-chain

Example (hypothetical): a small team builds a turn-based strategy game where players claim land, gather resources and trade. In the first version the game runs on the team's server while only the items are tokens on a chain, and players complain that the server goes down, trades vanish, and nobody can prove who owns a rare plot.

The team rebuilds it as a fully on-chain game. The map, land plots, resources and trade offers all become tables in a smart contract. A player claims land, gathers resources and offers trades by sending transactions, and the client only draws the map and sends the moves.

A turn takes about 20 seconds to confirm, so the team designs around slow play: one move per player per round, with rounds lasting a day. Over a month, a player who makes 30 moves spends 30 transactions, while the old version needed none. The team accepts the cost because the game runs without their server, trades cannot vanish, and any player can check the map and ownership records.

After launch, a player builds a separate map viewer showing trade offers across the whole world, using only the public chain state. The team did not plan it, approve it or run it. That is the point of the design: the game belongs to its rules, not to its maker. A similar pattern shows up in how GameFi works, where the game itself still runs on servers.

What are the common mistakes?

The most common mistakes in fully on-chain games are building a fast game on a slow chain, putting everything on-chain instead of only what needs trust, and treating openness as a feature without designing for it.

  • Choosing the wrong pace. A game that needs a move every second will feel broken on a chain that confirms a move every 20 seconds. Match the game's pace to the chain's speed before writing any code.
  • Putting presentation on-chain. Graphics, sound and animation belong in the client. Writing them into a contract wastes money and adds nothing, because the chain cannot show them to a player.
  • Ignoring public information. Every move is visible, so a game that depends on hidden cards or secret positions needs a design that hides information properly, such as committing to a move before revealing it.
  • Skipping the cost check. Each action is a transaction, so a game with dozens of moves per session can become expensive to play. Count the transactions per session early and design around the number.
  • No plan for upgrades. A contract that cannot be fixed is a liability, so teams need a tested upgrade path before launch, and players need to know who can change the rules.

Key takeaways

  • A fully on-chain game puts its rules, state and logic in smart contracts, not on a company server
  • Typical blockchain games put only assets on-chain; fully on-chain games put the gameplay there too
  • On-chain engines such as MUD and Dojo provide the storage, rules and indexing a game needs
  • The strengths are permanence, open building and verifiable results; the limits are speed, cost and public information
  • Put only what must be trusted on-chain, and keep graphics and sound in the client

Frequently asked questions

What is the difference between a fully on-chain game and a blockchain game?

A blockchain game usually puts only items, currency or ownership on-chain and runs the gameplay on a server. A fully on-chain game puts the rules and state on-chain too, so the game keeps working even if the maker's servers close.

Are fully on-chain games slow?

Yes, compared with server games. Each move is a transaction that must be confirmed by the chain, so they suit turn-based and strategy games rather than fast action games. Designers plan the pace of the game around that delay.

What is an autonomous world?

An autonomous world is a fully on-chain game or world that runs from its smart contracts and keeps its rules even if the team that built it stops working on it. The term comes from the community around on-chain game engines.

Do fully on-chain games cost money to play?

Each action is a transaction, and transactions on a public chain usually carry a fee, so playing does cost something. The cost depends on the chain, and teams design games with fewer, larger moves to keep it down.

Can anyone build on a fully on-chain game?

Yes. The state and the rules are public, so anyone can build a new client, a map viewer, a trading tool or even a new game that reads the same world, without asking the original maker for access.

Which games suit the fully on-chain design?

Turn-based strategy, trading and slow world games suit it best, because they can wait for a confirmation after each move. Fast action games, which need a move every second, do not fit the design.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a game that lives on-chain? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Blockchain Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call