Dev.to AI 🤖 Ai 👁 0 📖 5 min read

Treasure Hunt: Onchain Gameplay and Campaign Ideas for Web3 Projects

What if an airdrop did not hand tokens to users — but made them come and dig? Treasure Hunt is a small onchain game we built: pick a coordinate on the map, choose a depth, bury tokens or an NFT, and leave a public riddl

What if an airdrop did not hand tokens to users — but made them come and dig?

Treasure Hunt is a small onchain game we built: pick a coordinate on the map, choose a depth, bury tokens or an NFT, and leave a public riddle. The first person to guess the location digs up the whole treasure.

It looks like a small game. But its mechanics add up to something a project can run seriously: a campaign tool. This post walks through how it plays and why it can be trusted — then digs into concrete scenarios, especially for token teams.

Gameplay: bury a treasure, leave a riddle

Burying comes down to four choices: location (coordinate + depth), the asset, the riddle, and how long the treasure stays live.

Location. Click a coordinate on the map (snapped to a grid of roughly 111 meters) and set a depth between 1 and 999 meters. Coordinate and depth together are the vault password — only the burier knows it.
Asset. Native tokens, ERC20 tokens, or NFTs.
Riddle. A public clue — the only hint diggers get.
Lifetime. Treasures default to 30 days; if nobody digs them up, the burier can reclaim the asset at any time.
Hunting works in reverse: read a riddle from the clue list, guess a coordinate and a depth, and hit “Probe.” Probing is a read-only call — no gas, try as many times as you like. The moment coordinate and depth both match, you can send a dig transaction and the whole treasure is yours. First come, first served.

The trust model is built on simple parts:

The location stays secret. Only a hash — keccak256("lat|lng|depth") — goes onchain. The grid times the depth range is far too large to brute-force.
Fair competition. On any one chain, a given coordinate + depth can hold exactly one treasure; the contract enforces it. No hidden backdoors.
No custody. Assets sit in the contract, rules run as code, anyone can audit.
Reclaim after expiry. If nobody finds it, the burier gets the asset back — campaign budgets do not stay locked forever.
For the technical details, see the how it works page.

Why a small game works as a campaign

Compared with the usual campaign formats, a treasure hunt brings a few things for free:

The mystery is the content. The riddle is public; the location is not. That gap starts conversations — people discuss clues, compare theories. Discussion is distribution.
Participation is real. Free probing makes trial and error costless, while claiming the treasure takes a real onchain transaction — a low-pressure, high-reward first taste of Web3.
The process shares itself. Riddles are made for reposting, and the moment you dig up a treasure the page offers one-tap sharing to X, Facebook and Telegram (coordinates are blurred automatically). Every win becomes material for the next round.
The budget is bounded. Funds are locked as an asset in the contract — first come, first served, reclaimable after expiry. Whatever happens, the budget does not get stuck forever.
Scenario one: a token team's treasure drop
For teams with a token to put in circulation, a treasure hunt sits between an airdrop and a giveaway. Running one takes five moves:

Prepare the tokens you want to distribute (say, part of a campaign budget);
Pick a coordinate and depth on the map, and write a riddle that fits the campaign — a themed puzzle, or a clue tied to your project's story;
Bury it. The tokens lock into the contract;
Announce the riddle and the rules on X, Telegram, and wherever your community lives (the riddle itself is public onchain, but people need to know a treasure is out there);
Wait for the dig. Once revealed, the location turns into a golden marker on the map — ready for retro posts and a second wave.
Why it is worth trying:

From claiming to exploring. A regular airdrop is a button press. A hunt gives people something to puzzle over, probe, and discuss — and every hour of speculation is an hour your project stays on their minds.
Scarcity, honestly earned. First come, first served creates real competition, and unsuccessful probes are free — fun, low-stakes participation.
Made to serialize. Split the reward into several treasures at different difficulty levels and the campaign gains rhythm and a longer life.
Cross-chain by design. The same riddle works on every deployed chain — you can bury one treasure per chain and run a multi-chain event.
Two lessons from designing riddles: too obvious and the treasure vanishes instantly; too obscure and nobody ever digs it up (then it gets reclaimed). Serial puzzles let you spread the difficulty. And match the expiry to the campaign — a week for a short hype moment, the full 30 days for a long-running brand activity.

More scenarios: NFTs, brands, and communities

NFT projects. Bury a rare NFT as the treasure — a gacha pull with an unknown location, where scarcity comes from the hunt rather than a whitelist.
Brand and anniversary drops. Launch days and milestones make natural riddle material. Coordinates are real latitude/longitude, so clues can point at physical landmarks — linking the hunt to offline places.
Community collaboration. Split the clues of serial riddles across different channels and let the community piece the answer together — the hunt becomes a self-organizing community activity.
A visible record. Dug-up treasures leave golden markers on the map and a “found” list that logs every reveal — the campaign's history becomes a scoreboard you can show.

FAQ

Can bots just scoop up the treasures?

The location is secret — only a hash is onchain — and the search space (grid × depth) is far too large to sweep. The real gameplay is puzzle-solving: whoever reasons out the location first, digs first.

What happens if nobody finds a treasure before it expires?

The burier can reclaim the asset at any time, then re-bury it with a new riddle.

Which chains and assets are supported?

BNB Smart Chain, Arbitrum One, and Robinhood Chain today (more networks like OP Mainnet are being deployed). You can bury native tokens, ERC20 tokens, and NFTs (ERC721/ERC1155).

Closing
Treasure hunting is one of the oldest games there is. Put it onchain and it turns out to fit one job remarkably well: making a campaign not a claim, but a departure.

The map is open. Go see what is buried, then bury your first one.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.