Back to articles
I Built a Zero-Rake P2P Coin Flip Game on Base L2

I Built a Zero-Rake P2P Coin Flip Game on Base L2

via Dev.to01100001 01101100 01110000 011

Why I Built Yoss.gg I wanted a simple, fair way to flip a coin for USDC — no house edge, no custody risk, just a pure 50/50 bet between two people on-chain. So I built Yoss.gg . How It Works Pick your side — Heads or Tails Choose your wager — $1, $5, $10, $25, or $100 USDC Get matched — Instant matchmaking pairs you with an opponent Flip settles on-chain — The smart contract on Base L2 handles the escrow and payout The entire flow takes about 10 seconds. No rake. No fees (just gas, which is ~$0.01 on Base). The Tech Stack Frontend : Next.js + React, real-time WebSocket updates Backend : Go server handling matchmaking and game verification Chain : Base L2 (Coinbase's Ethereum L2) Smart Accounts : ERC-4337 via Pimlico — users get a smart wallet automatically, no MetaMask required Auth : Privy for seamless login (email, social, or wallet) Why Base? Base gives us sub-cent gas fees and fast finality. A coin flip that costs $50 in gas on Ethereum mainnet costs $0.01 on Base. That makes micro

Continue reading on Dev.to

Opens in a new tab

Read Full Article
3 views

Related Articles