AgarFi
Skill-Based GameFi on Solana
๐ LIVE IN PRODUCTION with real USDC prizes! Competitive multiplayer where skill determines victory. Play Dream Mode FREE every hour or compete in paid tiers ($1-$100 USDC).
Protected by x403 authentication + x402 blockchain-verified payments
Token Ticker
$AgarFi
Contract Address
6WQxQRguwYVwrHpFkNJsLK2XRnWLuqaLuQ8VBGXupump
๐ Latest Platform Updates - Nov 22, 2025
โ x403 LIVE
Cryptographic wallet authentication deployed
โ x402 LIVE
Blockchain-verified payments active
โ Mobile Fixed
Works in Phantom mobile browser
What is AgarFi?
How the Game Works
AgarFi is based on Agar.io, a 2015 browser game where players control circular cells ("blobs") on a 2D map. You start small and grow by consuming food pellets and smaller players. Larger players move slower. You can split your mass to catch opponents or eject mass to escape. Last player standing or largest mass after 30 minutes wins.
Winner-Takes-All Stakes
Players pay USDC to enter lobbies ($5, $25, $50, or $100 per game). Winner receives 80% of the total pot. 15% goes to platform fees, 5% used for AGAR token buybacks. All transactions recorded on Solana blockchain. No random elementsโoutcome determined purely by player skill and strategy.
Gameplay mechanics are deterministic with server-authoritative physics running at 60Hz tick rate. Movement speed is inversely proportional to mass. Cell splitting follows predictable trajectories. No random number generation (RNG) affects outcomes. Win conditions based on survival time and total mass accumulatedโboth direct results of player decisions.
Technical Architecture: Real-time multiplayer via Socket.io, blockchain settlements via Solana Web3.js, authentication via x403 signatures, payments via x402 HTTP protocol.
Technical Features
x403 Authentication
Wallet signature-based authentication. Each lobby join requires cryptographic proof of wallet ownership via message signing.
60Hz Server Tick Rate
Server-authoritative physics updates 60 times per second. Client-side prediction reduces perceived latency.
Dynamic Lobbies
Auto-scaling lobby system. Minimum 10 players to start, maximum 25 players per game. Multiple concurrent lobbies supported.
On-Chain Verification
All payments and payouts recorded on Solana blockchain. Transaction hashes publicly viewable for audit purposes.
Token Buyback
5% of each pot used to purchase AGAR tokens via Raydium SDK, then automatically staked in protocol contract.
Automated Payouts
Winners receive USDC via SPL token transfer. Server checks for Associated Token Account (ATA), creates if needed.
Tokenomics
Prize Pool Split
Standard Mode Examples (25 players):
$5: Total $125 โ Winner: $100
$25: Total $625 โ Winner: $500
$50: Total $1,250 โ Winner: $1,000
$100: Total $2,500 โ Winner: $2,000
๐ Whale: Total $25,000 โ Winner: $20,000
AGAR Token Utility
Stake AGAR for 30 days to unlock premium perks and demonstrate commitment to the ecosystem.
The Bullish Flywheel
More players โ Bigger pots โ More AGAR buybacks โ Higher token value โ More player incentive โ Even bigger pots ๐
WHALE MODE
๐๐ Unlocks at $1M Market Cap โข Live Service Global Event
The ultimate high-stakes arena where 50 players battle for a $25,000 prize pool. Winner takes home $20,000.
Buy-In
$500
Max Players
50
Winner Takes
$20K
Max Pot
$25K
๐ Global Event Features
Live Spectator Mode
Watch elite players compete in real-time
Hall of Fame
Permanent leaderboard of Whale victors
Auto-Recorded Replays
Every match saved for community viewing
Community Countdown
Global notifications when Whale lobby opens
Whale Mode isn't just a gameโit's a spectacle. The entire community watches, discusses strategy, and celebrates victories together. Think esports tournament meets live service event, happening organically whenever 50 players are ready to compete.
This is Web3 gaming's Super Bowl. And it happens every time we hit 50 players. ๐
Powered by Cutting-Edge Web3 Protocols
AgarFi uses x403 protocol for cryptographic wallet authentication and x402 protocol for HTTP-based cryptocurrency payments. Both protocols eliminate need for accounts, sessions, or identity verification.
x403 Protocol
WALLET SIGNATURE AUTHENTICATION
Authentication protocol using ECDSA (Elliptic Curve Digital Signature Algorithm) to verify wallet ownership. Server generates challenge message, client signs with private key, server validates signature matches public address.
How x403 Works:
When you connect your wallet, x403 generates a unique challenge message. You sign this message with your private key (only you can do this). The signature proves you own the wallet without revealing your private key. This signature-based authentication is bot-resistant and requires zero personal information.
How AgarFi Uses x403:
Every lobby join requires a fresh wallet signature to verify you're the real owner. We cache your session for 35 minutes to reduce signing friction. One wallet = one active game enforced. No bots can fake wallet signatures. No passwords to remember. No email verification.
- ECDSA signature verification (secp256k1)
- No PII (Personally Identifiable Information)
- Signature requires private key access
- Session tokens cached (35 min TTL)
- One wallet = one concurrent game slot
x402 Protocol
HTTP 402 PAYMENT PROTOCOL
Protocol for programmatic payments over HTTP using status code 402. Standardizes payment flow: server returns 402 with payment instructions, client submits crypto payment, server verifies via facilitator endpoints, then serves resource.
How x402 Works:
1) Client requests resource 2) Server returns 402 + payment details (amount, recipient, token) 3) Client constructs blockchain transaction 4) Server calls facilitator /verify endpoint to validate transaction 5) Facilitator calls /settle to execute payment 6) Server grants access to resource. All via standard HTTP without session state.
How AgarFi Uses x402:
Lobby entry endpoints return 402 status with USDC payment requirements. Client wallet constructs SPL token transfer. Server verifies transaction on Solana network before admitting player to game. Payouts use same protocol in reverseโserver initiates transfer, client receives USDC.
- No accounts or sessions required
- Programmatic crypto payments over HTTP
- Built on HTTP 402 status code
- Instant payment verification & settlement
- Perfect for micropayments & per-use billing
The Winning Combination
x403 ensures only verified wallet owners play (anti-bot). x402 enables frictionless crypto payments without accounts (no-KYC). Together they create a permissionless, bot-free gaming economy. AgarFi is the first GameFi project to combine both protocols at scale.
Built for Scale
Frontend
- Next.js App Router
- Raw Canvas (60fps)
- Solana Wallet Adapter
- Real-time Socket.io
Backend
- Next.js API Routes
- Socket.io (60Hz tick)
- Neon Postgres
- Drizzle ORM
Web3 Protocols
- x403 Authentication
- x402 Payment UX
- Solana Web3.js
- Raydium SDK
Infrastructure
- Vercel (Frontend)
- Render (Socket.io)
- Hardware Wallet Security
- Cloudflare Protection
Roadmap
โก Lightning Fast Development
Complete Platform in Just 1 Week
Leveraging cutting-edge protocols (x403, x402) and modern tooling, AgarFi goes from concept to production-ready in 7 days. This is the speed of Web3 innovation.
Days 1-2
Core Game System
48 Hours
โ COMPLETE- โ60fps Canvas rendering with vanilla JS physics
- โSocket.io real-time multiplayer (60Hz server tick)
- โBlob mechanics: eat, split, merge, eject pellets
- โSix standard game modes ($1, $5, $10, $25, $50, $100)
- โDream Mode - Free hourly game with $1 USDC prize
- โWhale Mode infrastructure (50 player lobbies)
- โDynamic lobby system with auto-scaling
- โMobile-optimized touch controls and responsive UI
Days 3-4
Payments & Token Economy (x402)
48 Hours
โ COMPLETE- โโ x402 protocol - HTTP 402 payment standard
- โโ Blockchain verification (100% trustless payments)
- โโ X-PAYMENT headers with cryptographic proofs
- โโ Solana USDC integration (SPL tokens)
- โโ Instant winner payouts (80/15/5 split)
- โโ Token gating ($100k $AgarFi required)
- โโ MongoDB persistence (users, transactions, sessions)
- โโ Automatic refund system (no double-refund bug)
- โโ Mobile payment support (Phantom browser)
Days 5-6
x403 Authentication & Anti-Bot
48 Hours
โ COMPLETE- โโ x403 protocol integration (cryptographic wallet auth)
- โโ Ed25519 signature verification (Solana standard)
- โโ Session management (30-min, MongoDB persistent)
- โโ One wallet = one active game enforcement
- โโ Progressive rate limiting (5 free attempts)
- โโ Anti-farming and bot protection
- โโ Replay attack prevention with nonces
- โโ User education modal with security warnings
Day 7
Production Launch
LIVE NOW
โ COMPLETE- โโ Live on mainnet with real USDC prizes
- โโ Security: x403 + x402 + token gating active
- โโ Performance: 60fps gameplay confirmed
- โโ Mobile optimized (works in Phantom browser)
- โโ Production deployment (Vercel + Render)
- โโ 50+ real users playing daily
- โ๐ LIVE IN PRODUCTION
Ready to Play?
๐ฎ LIVE WITH REAL MONEY - Play Dream Mode (free hourly) or paid tiers ($1-$100). Winners get instant USDC payouts verified on Solana blockchain. Requires 100k $AgarFi tokens + wallet signature authentication (x403).
Play Game Now