HunterVerse

Hunt AR creatures, win real discounts. Businesses get footfall and brand awareness in return

HunterVerse

Created At

ETHGlobal Mumbai

Winner of

Arkiv

Arkiv - Build on Arkiv (from scratch) 2nd place

Project Description

HunterVerse turns your city into a treasure hunt. Local businesses drop 3D creatures on the map; players walk to them, catch them, and unlock real discount codes – a game where every catch is a coupon worth something.

For businesses: launch a campaign in minutes. Pick a 3D model, set rewards per rarity (Common, Rare, Epic, Legendary), choose exactly how many of each, and drop it on the map. Chainlink VRF shuffles the rarities on-chain, so nobody (not even the business) knows which creature is the Legendary one. Businesses choose "Auto settle" (catches are delivered instantly) or "Approval" (they approve each catch), and they're notified of every claim and resale. And get the Footfall

For players: log in with World ID, so only real, unique humans can play – no bot farms, no multi-wallet grinding. The map shows one creature per business within 500 m. Get within 50 m, tap it, see its 3D model and reward, and hit "Claim it". The smart contract checks your distance, makes sure you only catch one creature per campaign, and gives you the next creature in the VRF-shuffled order, so rarity can't be sniped.

Your creatures live in your Profile. Redeem one to reveal its encrypted discount code (redeeming is permanent), or keep it and sell it on the built-in Marketplace. Buyers pay the seller directly on-chain, and ownership moves automatically. Every creature's data is checked against the chain before it can be listed, so tampered or fake creatures can't be sold.

A real-world loyalty game that brings people through the door.

How it's Made

Solidity contracts (Foundry), a Node.js worker, a business app (Vite) and a player app (Next.js + React), all on Base Sepolia.

Chainlink VRF v2.5: when a business launches a campaign, the contract requests randomness and runs a Fisher–Yates shuffle inside the VRF callback, so the exact rarity counts are preserved but their positions are provably random. We then made the map always show a campaign's NEXT creature in that shuffled order, which makes rarity un-snipeable without needing a second VRF call per catch.

World ID (IDKit v4): players prove they're unique humans, and the proof is bound to their wallet (wallet address as the signal, verified server-side against World's API, one human = one wallet). Our server then signs an EIP-712 "claim ticket" that the CreatureMarket contract requires, so even someone calling the contract directly can't skip the human check.

Arkiv: every creature is an Arkiv entity (rarity, location, reward, Swarm model reference, plus catched / listed / redeemed / price flags), created by the business's own wallet so $creator proves authenticity. Hacky bit: for Auto settle we predict the entity keys before signing, so creating the creatures and handing them to our settler wallet happens in ONE atomic Arkiv transaction. The settler then mirrors the chain: on a claim, sale or unlist it transfers the entity and repairs any field that doesn't match the chain.

Swarm: the 3D .glb models are uploaded to Swarm, with a unique per-creature copy stamped with its ID, verified by re-downloading and hashing.

Contracts: CreatureMarket (built with OpenZeppelin) handles claim, redeem, list and buy. The 50 m check runs on-chain with integer-only math (an equirectangular projection plus Bhaskara's cosine approximation), and the frontend uses the exact same formula with BigInt, so the "Claim it" button lights up if and only if the contract will accept it.

Security touches: discount codes are AES-256-GCM encrypted before they ever reach the chain, and are only revealed to the creature's owner after an on-chain redeem. Marketplace listings need a signed attestation from our settler confirming the creature's data is untampered. The map is Mapbox with a three.js player avatar and floating 3D creatures. 54 contract tests (including fuzzing), 80+ unit tests and a full end-to-end test cover the whole flow.

background image mobile

Join the mailing list

Get the latest news and updates