https://github.com/hyperbuildx/solana-prediction-market
Solana Prediction Market where users can create market, add liquidity, and bet
https://github.com/hyperbuildx/solana-prediction-market
anchor nextjs nodejs prediction-markets rust solana switchboard web3js
Last synced: 2 months ago
JSON representation
Solana Prediction Market where users can create market, add liquidity, and bet
- Host: GitHub
- URL: https://github.com/hyperbuildx/solana-prediction-market
- Owner: HyperBuildX
- Created: 2025-07-09T08:13:43.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T21:48:14.000Z (3 months ago)
- Last Synced: 2025-07-10T07:55:47.425Z (3 months ago)
- Topics: anchor, nextjs, nodejs, prediction-markets, rust, solana, switchboard, web3js
- Language: TypeScript
- Homepage:
- Size: 13.5 MB
- Stars: 5
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# ๐ง DecentraPredict - A Decentralized Prediction Market
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.
---
## โจ Features
- ๐ 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---
## ๐ How it works
You can reference the guide video here:https://github.com/user-attachments/assets/8f48a641-7edb-4af3-a17e-c5464bfef660
---
## ๐๏ธ Tech Stack
- **Blockchain**: Solana
- **Smart Contracts**: Anchor / Rust
- **Frontend**: Next.js + TailwindCSS
- **Backend**: Node.js + Express + MongoDB
- **Oracles**: Switchboard---
## ๐ Getting Started
### Prerequisites
- Node.js v18+
- Anchor 0.29.0
- Next.js v15.2.1+
- MongoDB Atlas (for backend data)### Installation
```bash
# 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 =
```## ๐ง How It Works
- 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## ๐ฌ Contact
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](https://t.me/bettyjk_0915)