Instant sports betting with zero gas fees using Yellow Network state channels on Base Sepolia.
PulseBet revolutionizes sports betting by combining Yellow Network's Nitrolite state channels with real-time sports data. Users open a payment channel once, then place unlimited bets with zero gas fees and instant settlement, all happening off-chain while maintaining blockchain security.
The platform integrates deeply with Yellow Network's protocol: EIP-712 authentication, session key generation, WebSocket communication with Yellow's broker, and complete state channel lifecycle management on Base Sepolia. Each bet settles in under 1 second with no transaction fees.
I've built a clean, intuitive interface where users can bet on live soccer matches powered by API-Football data. The house edge is just 2-3% (vs traditional platforms' 5-15%), made sustainable by eliminating gas costs. This creates a win-win: better odds for users, healthy margins for the platform.
PulseBet demonstrates the power of state channels for real-world applications, making Web3 betting accessible, instant, and economical.
PulseBet is built with Next.js 15, TypeScript, and TailwindCSS for a responsive, modern frontend. The blockchain integration uses viem and wagmi for type-safe interactions with Base Sepolia.
The core innovation is our deep Yellow Network integration. We implemented the complete Nitrolite protocol flow:
I built a custom YellowNetworkClient wrapper (lib/yellow/client.ts) that initializes the NitroliteClient with proper configuration for Base Sepolia, handles WebSocket connections to Yellow's clearnet sandbox, and manages the state channel lifecycle.
The useYellow.ts hook orchestrates the entire flow: authentication challenge-response, session key generation with ECDSA signing, real-time WebSocket message handling, on-chain transaction submission, and comprehensive error handling with timeouts.
I use API-Football for live sports data, integrating their REST API to fetch real-time matches, odds, and scores. The betting logic happens entirely off-chain through state channels, with only channel open/close touching the blockchain.
Technical challenges we overcame: handling WebSocket reconnections, managing async authentication flows, proper TypeScript typing for complex protocol messages, and implementing simulation mode for demo purposes when encountering Yellow Network's one-channel-per-address testnet limitation.

