NearPredict is a fully autonomous, AI-powered prediction market deployed on an Aurora-powered Virtual Chain, optimized specifically for real-world market creation, resolution, and settlement. Built as a dedicated application chain, NearPredict combines fully on-chain infrastructure with AI agents that continuously create new markets, fetch external data, resolve outcomes, and instantly distribute rewards.
- AI-Powered Market Creation: Autonomous AI agents scan real-world data sources to generate meaningful prediction markets
- Real-Time Data Integration: Markets resolve using live data from news feeds, APIs, oracles, and structured datasets
- Instant Settlement: Smart contracts automatically distribute winnings immediately after resolution
- One Position Per User: Simple MVP model - each user can hold one position per market
- Gasless Transactions: 100% gasless experience via Aurora's virtual chain architecture
- Wallet Integration: Seamless MetaMask connection with Aurora Mainnet support
- Real-Time Updates: Live market data and position tracking
- Responsive Design: Mobile-first design with dark theme
- Multi-RPC Failover: Robust Aurora network connectivity with multiple RPC endpoints
- Smart Contract Integration: Direct interaction with deployed prediction market contracts
- Type-Safe Development: Full TypeScript implementation
NearPredict consists of three main repositories:
- Frontend Web App (this repo): Next.js application for user interaction
- Prediction Creator: AI agents for autonomous market creation and resolution
- Smart Contracts: Solidity contracts for on-chain prediction markets
- Frontend: Next.js 15, React, TypeScript
- Styling: Tailwind CSS, Shadcn UI
- Blockchain: Aurora Mainnet, Ethers.js
- Smart Contracts: Solidity (deployed separately)
- State Management: React Hooks, Local State
- Node.js 18+
- npm or yarn
- MetaMask browser extension
- Connect Wallet: Click "Connect Wallet" and approve MetaMask connection
- Browse Markets: View live prediction markets on the homepage
- Place Bets: Click on any market to view details and place YES/NO bets
- Track Positions: View your positions and winnings in real-time
- Automatic Payouts: Winnings are distributed automatically when markets resolve
- NearPredict Creator: AI agents for autonomous market creation and resolution
- NearPredict Contracts: Smart contracts for prediction markets