Wheel on Chain
โ Live on SepoliaBlockchain-based Lucky Wheel Game Platform ยท Provably Fair ยท On-chain Verifiable
Runs on a Mac Mini kept online 24/7, serving both frontend and backend locally.
Publicly accessible via Cloudflare Tunnel at wheelonchain.xyz
Deployed on Sepolia testnet. Easily portable to any EVM chain where Chainlink VRF is supported.
About the Project
Wheel on Chain is a blockchain-based lucky wheel game platform built on Ethereum. It provides a transparent and provably fair lottery experience where users can participate with ETH, and winners are selected using Chainlink VRF (Verifiable Random Function) to guarantee on-chain verifiable randomness.
The entire stack โ frontend, backend, and WebSocket server โ runs on a personal Mac Mini kept online 24/7. Public access is provided through a Cloudflare Tunnel, exposing the app at wheelonchain.xyz.
Smart contracts are deployed on the Sepolia testnet and can be re-deployed to any EVM-compatible chain supported by Chainlink VRF (e.g., Ethereum mainnet, Polygon, Avalanche, BNB Chain, and more).
Architecture Overview
Frontend
Backend
Blockchain
Core Features
Round System
Game runs in rounds with fixed time windows for players to join and place bets
Chainlink VRF
Provably fair random winner selection using Chainlink VRF for on-chain verifiable randomness
Reward Distribution
Winners receive the full prize pool (minus protocol fees), claimable directly from the smart contract
Wallet Integration
Seamless MetaMask connection with support for Sepolia testnet ETH transactions
Multiple Entries
Players can enter multiple times per round to increase their winning chances
Real-time Updates
WebSocket-powered live game state, dynamic wheel rendering, and countdown timers
Multi-language
Full internationalization support with Chinese and English interface switching
NFT Lottery
ERC-721 NFT with Merkle-based whitelisting and weekly VRF-powered draws with ETH rewards
Smart Contract Highlights
WheelNFTERC-721 Enumerable NFT with 100 max supply and Merkle-based whitelist claim system
Chainlink VRF V2+ integration for provably fair weekly draws and bulk randomness
Automated reward distribution: 10 winners per draw with on-chain prize pool management
ReentrancyGuard, pausable contract, and emergency admin functions for safety
Two-phase draw: VRF callback stores randomness, then finalize distributes rewards to reduce gas
Complete draw history and per-token reward tracking with batch claim support
Network & Deployment
Try the DApp
Play the lucky wheel on Sepolia testnet โ provably fair, on-chain verifiable
ยฉ 2026 Tony Ye. All rights reserved.