Skip to content

HyperBuildX/Solana-Prediction-Market

Repository files navigation

🧠 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:

create_fund_trading.mp4

🏗️ 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

# 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.

About

Solana Prediction Market where users can create market, add liquidity, and bet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published