Case Study
BetsBits
Social Prediction Markets on Solana
See It Live
Visit the production platform at betsbits.aruailabs.com
Overview
The Opportunity
Prediction markets are the most accurate forecasting tool ever invented. But centralized platforms charge high fees, restrict access, and control your funds. Crypto prediction markets exist but lack social features, real liquidity, and intuitive UX.
BetsBits combines DeFi-native prediction markets with social trading mechanics. Create markets on any crypto event, battle other traders 1v1, copy top performers, and govern the protocol — all settled on Solana with sub-second finality.
Core Features
Prediction Markets
Create and trade on binary, scalar, and conditional markets. Real-time YES/NO pricing with AMM-powered liquidity. Pyth Hermes oracle auto-resolution every 5 minutes.
1v1 Prediction Battles
Challenge any trader to a head-to-head prediction duel. Stake SOL, pick your side, winner takes the pot. Full on-chain settlement with fee distribution.
Copy Top Predictors
Follow top-performing predictors. Mirror their positions automatically. Leaderboards track win rates, profit, and streaks across all-time, monthly, and weekly periods.
On-Chain Fee Distribution
3% platform fee + 2% resolution fee + 2% creator fee. Fees transfer atomically from vault to treasury and creator during market resolution. Fully verifiable on Solscan.
On-Chain
5 Anchor Programs
The protocol is composed of five independent Solana programs built with Anchor, each handling a distinct domain of the prediction market lifecycle.
Core market creation, betting, and resolution
Automated market maker for continuous pricing
Price feeds and outcome verification
On-chain voting and protocol parameter control
Multi-outcome and conditional prediction markets
Architecture
Full-Stack Web3
Frontend
React 18, Vite 7.3, Tailwind CSS 3.4, 28 pages
Blockchain
5 Anchor programs on Solana (anchor-lang 0.30.1)
Backend
Vercel Serverless Functions, 11 API endpoint groups
Database
Supabase PostgreSQL, 83+ tables, RLS, Realtime
Wallet
Phantom integration with mobile deep links
Oracle
Pyth Hermes + CoinGecko + CoinPaprika price feeds
Aesthetic
Trading Terminal Luxe
Clean slate surfaces with purple accents and green/red trading signals. Dark mode support. Designed for focus and fast decision-making across 28 responsive pages.
Background
#F8FAFC
Surface
#FFFFFF
Primary
#7C3AED
Accent
#6D28D9
Yes / Buy
#16A34A
No / Sell
#DC2626
Text
#0F172A
5
Solana Programs
28
Web Pages
13
Android Screens
83+
Database Tables
14
API Endpoints
3.7
SOL Volume (Devnet)
Mobile
Android App
Native Android app built with Kotlin + Jetpack Compose, connecting to the same Supabase backend and Solana devnet. 13 screens with Phantom wallet deep link integration, real-time market data, and bet placement.
Framework
Jetpack Compose
Language
Kotlin
Wallet
Phantom Deep Link
Backend
Supabase + sol4k
Verified on Solana Devnet
Full end-to-end lifecycle tested with real SOL transactions — every operation verifiable on Solscan. 9/9 test steps pass.
Interested in building something like this?
Partner With Us