DecentraPredict is an open-source decentralized prediction market built on Solana, allowing users to create, participate, add liquidity and resolve prediction events using smart contracts.
⚖️ Bet on real-world outcomes. Earn if you're right. Built for transparency, fairness, and community governance.
- 📊 Create custom markets with clear outcomes
- 💰 Add fund to increase liquidity
- 🔐 Decentralized and trustless smart contracts
- 🧾 Transparent resolution and reward distribution
- 💸 Supports token-based betting and rewards
- 🧠 Oracle integration for automatic result fetching
- 👨🏿🤝👨🏿 Referral link system
You can reference the guide video here:
create_fund_trading.mp4
- Blockchain: Solana
- Smart Contracts: Anchor / Rust
- Frontend: Next.js + TailwindCSS
- Backend: Node.js + Express + MongoDB
- Oracles: Switchboard
- Node.js v18+
- Anchor 0.29.0
- Next.js v15.2.1+
- MongoDB Atlas (for backend data)
# Clone the repository
git clone https://github.com/HyperBuildX/Solana-Prediction-Market
cd decentrapredict
# Install dependencies
npm install
# Run frontend
npm run dev
# Run backend
npm start
### Backend env setting
```env
PORT =
DB_URL =
PASSKEY =
FEE_AUTHORITY =
- Create Market – A user creates a prediction event: e.g., "Will BTC hit $80k by Dec 2025?"
- Add liquidity – A user fund any market to increase liquidity
- Participants Bet – Users place stakes on "Yes" or "No"
- Locking Period – Market closes at deadline; no more bets
- Resolution – Oracle fetches real-world outcome
- Payout – Winners are rewarded proportionally
If you have any questions or would like a more customized app for specific use cases, please feel free to contact us at the contact information below.
- E-Mail: hyperbuildx@adamglab.dev
- Telegram: @bettyjk_0915