{"repo":"0xRustPro/prediction-market-contract-main-solana","free":true,"listed":false,"github":"https://github.com/0xRustPro/prediction-market-contract-main-solana","clone":"git clone https://github.com/0xRustPro/prediction-market-contract-main-solana.git","description":"A Prediction Market Contract is a smart contract that lets users bet on future events, collects their stakes, verifies the outcome via an oracle, and automatically pays out winners, all trustlessly and on-chain.","language":"Rust","stars":47,"topics":["anchor","betting","casino-games","ethereum","rust","smart-contracts","solidity","solama"],"license":null,"category":"blockchain-web3","readme_excerpt":"Solana Prediction Market Smart Contract A decentralized prediction market platform built on Solana blockchain, inspired by Polymarket. This project enables users to create markets, trade positions, and resolve outcomes based on real-world events. Features - Market Creation : Create prediction markets for any event - Liquidity Provision : Add and withdraw liquidity to markets - Trading : Trade positions using Yes/No tokens - Market Resolution : Automatic resolution based on final outcomes - Fee Structure : Platform and LP fees for sustainable operations Contact If you wanna build prediction market project like this, plz contact here: Telegram Architecture The project is built using: - Solana Web3.js - Anchor Framework - SPL Token Program - Associated Token Program Getting Started Prerequisites - Node.js - Yarn - Solana CLI - Anchor Framework Installation 1. Build the program: 2. Deploy the program: Configuration Configure your project settings: Usage Examples 1. Create a new market: 2. Add liquidity to a market: 3. Trade positions: 4. Withdraw liquidity: 5. Resolve market: Example Transactions Configuration 61hRVTaWHMVFFrmDX8oKKecEJu2unneEZ1ojwRa8cC9i5mjGA9qf6MLkCSJq5k3dsteLcEKGLsXRnXATgnvJ3kn Market Creation 4Bu1wf7LxtYNp1SZxuBJQENkpW4H1bLZYW8T4PaTBDkcmj87gGCdK7UxwxKLmo5ZbDiaHyhBGsgxQEQjAZBc8UdE Add Liquidity 2z9CsyN3pbpXgomzQb61VVm9U2Qhmc2eDsqVEDx6HePLzXnrBjVZtkfbiESbgvicWD4sTqeZ7imnLGMkj1M6NeDA Withdraw Liquidity 4itxyZS1pvXYXDwaxV2qit45BhSWzXNpgQw244xVUvpWYVoS4UctYunLzMkEE","default_branch":null,"files":null,"tree":[],"storefront":"/r/0xRustPro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0xRustPro/prediction-market-contract-main-solana/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}