An open API service indexing awesome lists of open source software.

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

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)