Skip to content

milah-247/stacks-prediction-market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

Stack Prediction market

Stack Predict market is a decentralized prediction market platform built on the Stacks blockchain. It allows users to create, participate in, and resolve prediction markets for events using Bitcoin via Stacks smart contracts (Clarity).

Stack Predict enables secure, transparent, and trustless prediction markets where outcomes are verifiable on-chain.


Overview

Stack Predict brings trust and automation to prediction markets. Users can:

  • Create markets with conditions and stakes
  • Participate by placing predictions
  • Resolve markets via oracle or manual verification
  • Collect payouts automatically from smart contracts

All transactions, predictions, and payouts are recorded on-chain via Stacks, ensuring transparency and immutability.


Features

  • Market Creation: Users can create prediction markets for events.
  • Prediction Participation: Users place predictions by staking STX tokens.
  • On-chain Settlement: Outcomes and payouts are handled automatically by Clarity smart contracts.
  • Oracle Integration: Support for event outcome verification using reliable data sources.
  • User Dashboard: Track active markets, predictions, and winnings.
  • Secure and Trustless: Fully decentralized with transparent smart contracts.

Tech Stack

  • Blockchain: Stacks (on Bitcoin)
  • Smart Contracts: Clarity
  • Frontend: React / Next.js
  • Backend: Node.js (optional for APIs and off-chain services)
  • Wallet Integration: Hiro Wallet

System Architecture

Components:

  • Frontend: Interface for creating markets, placing predictions, and tracking outcomes
  • Backend (optional): API for off-chain services, market data aggregation
  • Smart Contracts: Core logic for market creation, prediction staking, and payouts
  • Wallet: Hiro Wallet for signing transactions

Getting Started

Prerequisites

  • Node.js
  • Stacks CLI & Clarity development environment
  • Hiro Wallet extension

Installation

git clone https://github.com/your-username/stack-predict.git
cd stack-predict
npm install
npm run dev

About

Decentralized prediction market built on Stacks using Clarity, enabling users to create markets and stake STX on real-world event outcomes secured by Bitcoin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors