About Protocol Pawns
What is Protocol Pawns?
Protocol Pawns is the very first fully decentralized on-chain chess game built on NEAR Protocol. Every move is recorded on-chain, every game is verifiable, and there are no centralized servers controlling your games.
How to Play
Connect your NEAR wallet and register with a one-time storage deposit of 0.05 N.
Challenge another player by entering their wallet address, or start a game against the AI with three difficulty levels:
- Easy — casual play, low gas (~8 TGas)
- Medium — balanced challenge (~30 TGas)
- Hard — strong opponent (~110 TGas)
Click or drag pieces on the board. Each move is a signed on-chain transaction. The contract validates all moves so you can't cheat.
Earn PPP (Protocol Pawns Points) for playing and winning. Complete daily quests and unlock achievements. Your ELO rating is tracked on-chain.
Points System (PPP)
PPP (Protocol Pawns Points) is a non-transferable on-chain token. You earn it by playing — every move counts, every win matters. Points are awarded through quests (repeatable) and achievements (one-time).
ELO Rating
Every game you finish updates your ELO rating, stored directly on the smart contract. Win against stronger opponents to climb faster. Your rating is visible on your profile page and on the leaderboard.
Smart Contract
The chess engine runs entirely inside the NEAR smart contract at app.chess-game.near. It validates legal moves, detects checkmate and stalemate, and emits NEP-297 events for every game action.
Tech Stack
- - Contract: Rust on NEAR Protocol
- - Indexer: GoldSky (NEP-297 event pipeline)
- - API: Cloudflare Workers + Hyperdrive (PostgreSQL)
- - Frontend: SvelteKit + Svelte 5 + UnoCSS
- - Wallet: @hot-labs/near-connect