Prediction-Market-Solana icon indicating copy to clipboard operation
Prediction-Market-Solana copied to clipboard

This provides a comprehensive overview of the Solana-based prediction market platform, detailing its core architecture, innovative features, and underlying technology designed to facilitate decentrali...

๐Ÿš€ DecentraPredict: A Decentralized Prediction Market

DecentraPredict is an open-source, decentralized prediction market platform built on Solana. It empowers users to create, participate in, add liquidity to, and resolve prediction events through trustless smart contracts.

โš–๏ธ Bet on real-world outcomes. Earn rewards if your prediction is correct. Designed for transparency, fairness, and community governance.


๐Ÿง  How It Works

  • Create Market: Users can establish prediction events, such as "Will BTC reach $80k by December 2025?"
  • Add Liquidity: Users can fund markets to boost liquidity and trading volume
  • Place Bets: Participants stake tokens on outcomes like "Yes" or "No"
  • Locking Period: Markets close at the designated deadline; no further bets are accepted
  • Resolution: An oracle fetches and verifies the actual outcome of the event
  • Payout: Winners receive rewards proportionally based on their stakes

โœจ Features

  • ๐Ÿ“Š Create custom markets with clearly defined outcomes
  • ๐Ÿ’ฐ Add liquidity to enhance market depth and trading activity
  • ๐Ÿ” Trustless, decentralized smart contracts ensuring security
  • ๐Ÿงพ Transparent resolution and reward distribution processes
  • ๐Ÿ’ธ Token-based betting and reward mechanisms
  • ๐Ÿง  Oracle integration for automatic result fetching
  • ๐Ÿ‘จ๐Ÿฟโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ Referral system to foster community growth

๐Ÿ—๏ธ Tech Stack

  • Blockchain: Solana
  • Smart Contracts: Anchor / Rust
  • Frontend: Next.js + Tailwind CSS
  • Backend: Node.js + Express + MongoDB
  • Oracles: Switchboard

๐Ÿš€ Getting Started

Prerequisites

  • Node.js v18+
  • Anchor v0.29.0+
  • Next.js v15.2.1+
  • MongoDB Atlas (for backend data storage)

Installation

# Clone the repository
git clone https://github.com/solzarr/Prediction-Market-Solana
cd decentrapredict

# Install dependencies
npm install

# Run frontend
npm run dev

# Run backend
npm start

Backend Environment Variables

Create a .env file in the root directory with the following content:

PORT=YourPortNumber
DB_URL=YourMongoDBConnectionString
PASSKEY=YourSecurePasskey
FEE_AUTHORITY=YourFeeAuthorityPublicKey

๐Ÿ’ฌ Contact

For inquiries, support, or custom development requests, please reach out via: