A decentralized prediction market built on the Stellar blockchain
Stella Polymarket is a decentralized prediction market platform where users forecast real-world events and earn rewards using Stellar (XLM) or custom tokens.
It combines:
- โก Stellar's fast, low-cost transactions
- ๐งฉ Smart contracts via Soroban
- ๐ Real-time data via oracles
- ๐ Focus on global and African markets
Prediction markets are one of the most powerful tools for aggregating collective intelligence โ yet most existing platforms are:
- Expensive โ high gas fees make small stakes impractical
- Exclusive โ built for crypto-native users in developed markets
- Opaque โ centralized platforms can manipulate outcomes
- Slow โ settlement takes days on congested networks
Stella Polymarket fixes this by building on Stellar, a blockchain designed for fast, cheap, and accessible financial transactions.
| Problem | Stella Polymarket Solution |
|---|---|
| High fees on Ethereum | Stellar transactions cost fractions of a cent |
| Slow settlement | Stellar confirms in 3โ5 seconds |
| Centralized control | Soroban smart contracts โ trustless and transparent |
| Inaccessible to emerging markets | Built with Africa and global south in mind |
| Complex UX | Simple wallet connect + one-click betting |
Whether you're a casual user predicting football results or a serious forecaster tracking macroeconomic trends, Stella Polymarket gives you a fair, fast, and transparent arena to put your knowledge to work.
Users stake tokens on outcomes of real-world events.
- Correct prediction โ earn rewards
- Wrong prediction โ lose stake
| Market | Type |
|---|---|
| Will Bitcoin reach $100k before 2027? | Binary |
| Will Nigeria inflation drop below 15% this year? | Binary |
| Will Arsenal win the Premier League? | Binary |
| Will AI replace 30% of jobs by 2030? | Binary |
- Market Creation โ Anyone can create a market with automated validation (permissionless)
- User Participation โ Users connect their Stellar wallet and stake XLM or tokens on an outcome
- Fund Locking โ Funds are locked in Soroban smart contracts (transparent + tamper-proof)
- Oracle Resolution โ External data source confirms the result (sports API, financial feed, etc.)
- Payout Distribution โ Winners share the pool proportionally; platform takes a small fee
Markets are created instantly without admin approval through automated validation:
- Description: Minimum 50 characters for context
- Outcomes: 2-5 options (binary or multi-choice)
- End Date: Must be future date within 1 year
- No Duplicates: Unique questions only
- Rate Limit: 3 markets per wallet per 24 hours
See Permissionless Launch Guide for details.
Client (Web/App)
โ
API Layer (Node.js / Express)
โ
Stellar Network (Soroban Smart Contracts)
โ
Database (PostgreSQL / MongoDB)
โ
Oracle Services (External APIs)
โ
Response โ UI Dashboard
- ๐ Prediction Markets โ Binary (Yes/No) and multiple choice
- ๐ฐ Tokenized Staking โ XLM or custom Stellar assets, optional liquidity pools
- ๐งพ On-chain Transparency โ All bets recorded on-chain, publicly verifiable
- ๐ง AI Insights (Optional) โ Predictive suggestions and trend analysis
- ๐ Gamification โ Leaderboards, reputation scores, NFT badges (future)
// Simplified Soroban contract flow
create_market(question, end_date, outcomes)
place_bet(market_id, outcome, amount)
lock_funds(market_id, user, amount)
resolve_market(market_id, winning_outcome) // oracle-triggered
distribute_rewards(market_id)STELLA Token โ used for:
- Governance voting
- Fee discounts
- Rewards distribution
| Layer | Technology |
|---|---|
| Frontend | React / Next.js, Tailwind CSS, Freighter Wallet |
| Backend | Node.js / Express |
| Database | PostgreSQL / MongoDB |
| Blockchain | Stellar Network, Soroban Smart Contracts |
| Oracles | Chainlink / Custom APIs |
- Landing Page (hero + live stats)
- Market Dashboard
- Market Detail Page
- Wallet + Portfolio
- Leaderboard
User predicts: "NGN will strengthen vs USD"
Stakes: 50 XLM
Market closes โ Oracle confirms result
User wins โ receives 120 XLM
- ๐ Built for global and African markets
- โก Ultra-low fees (Stellar advantage)
- ๐ฑ Mobile-friendly prediction platform
- ๐ Transparent and trustless system
- DAO governance
- Social prediction feeds
- Copy trading (follow top predictors)
- Cross-chain support
- Mobile app
stella-polymarket/
โโโ frontend/ # Next.js + Tailwind UI
โโโ backend/ # Node.js API server
โโโ contracts/ # Soroban smart contracts (Rust)
โโโ oracle/ # Oracle integration services
โโโ docs/ # Architecture diagrams + specs
To test smart contracts locally without spending real Testnet XLM, you can spin up a standalone Stellar network with the Soroban RPC enabled:
docker compose up -d# Clone the repo
git clone https://github.com/your-username/stella-polymarket.git
cd stella-polymarket
# Install frontend deps
cd frontend && npm install
# Install backend deps
cd ../backend && npm install
# Run locally
npm run devSmart contract deployment requires the Soroban CLI.
Stella Polymarket includes comprehensive stress testing to ensure platform stability under peak load.
# Install test dependencies
pip install -r requirements.txt
# Start backend server
cd backend && npm start
# Run stress tests
python3 run-stress-test.py- 500 concurrent users placing bets simultaneously
- 50 simultaneous market resolutions under load
- 1000 concurrent WebSocket connections for real-time updates
- p95 latency < 2000ms
- Error rate < 1%
- Throughput > 8 requests/second
- ๐ Full Testing Guide
- ๐ Bottleneck Analysis
- โก Quick Reference
Stress tests run automatically on every PR to main branch via GitHub Actions. Tests must pass before merge.
MIT ยฉ Stella Polymarket