The first prediction market platform that combines SpoonOS AI agents with Neo blockchain
Features β’ Demo β’ Architecture β’ Setup β’ Documentation
Noro is a fully decentralized prediction market platform built on the Neo N3 blockchain. It leverages SpoonOS AI agents to provide intelligent market analysis, automated trading recommendations, and evidence-based probability predictions. The platform combines blockchain technology, decentralized storage (NeoFS), and advanced multi-agent AI systems to create a sophisticated prediction market ecosystem.
- AI-Powered Analysis: Three specialized SpoonOS agents (Analyzer, Trader, Judge) automatically research scientific papers, analyze evidence, and generate probability predictions
- Fully Decentralized: Built on Neo blockchain with NeoFS storage - markets are immutable, transparent, and censorship-resistant
- Evidence-Based Trading: Trade recommendations backed by real scientific research from PubMed and arXiv, not speculation
- Automated Resolution: Neo Oracle integration automatically resolves markets when events occur
- Real-Time Updates: WebSocket connections provide live agent activity and market updates
- Risk Management: Trader agent uses Kelly Criterion for optimal stake sizing
- Production Demo: Link
If you have deployed instances, add them here:
- Frontend URL:
https://your-frontend-url.com - Backend API:
https://your-api-url.com - Smart Contract:
0x76834b08fe30a94c0d7c722454b9a2e7b1d61e3a(Neo Testnet)
- β Market Creation: Create prediction markets with questions, descriptions, categories, and resolve dates
- β Trading: Buy YES or NO shares using GAS tokens
- β AI Analysis: Automatic market analysis by SpoonOS agents
- β Oracle Resolution: Automated market resolution via Neo Oracle
- β Decentralized Storage: Market metadata stored on NeoFS
- β Real-Time Updates: WebSocket connections for live updates
- β Wallet Integration: Seamless NeoLine wallet integration
-
Analyzer Agent
- Searches PubMed and arXiv for scientific papers
- Analyzes evidence and generates probability predictions
- Provides confidence scores and evidence summaries
-
Trader Agent
- Fetches real-time market data from Neo blockchain
- Calculates optimal stakes using Kelly Criterion
- Generates trade recommendations (BUY_YES/BUY_NO)
-
Judge Agent
- Aggregates multiple analyses for consensus
- Provides weighted probability estimates
- Validates market outcomes
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend (Next.js) β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Market Pages β β Agent Chat β β Trade Panel β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β HTTP/WebSocket
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββ
β Backend API (FastAPI) β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Neo RPC Clientβ β Agent Serviceβ β NeoFS Client β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
ββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββ¬βββββββββββ
β β β
ββββββββΌβββββββ βββββββββΌβββββββ βββββββββΌβββββββ
β Neo N3 β β SpoonOS β β NeoFS β
β Blockchain β β AI Agents β β Storage β
βββββββββββββββ βββββββββββββββββ ββββββββββββββββ
Frontend
- Next.js 16
- TypeScript
- React 19
- Tailwind CSS
- NeoLine Wallet Integration
Backend
- FastAPI (Python)
- WebSocket Support
- SQLite Database
- Neo RPC Client
Blockchain
- Neo N3 Smart Contracts (C#)
- Neo Oracle Integration
- NeoFS Decentralized Storage
AI Agents
- SpoonOS SDK
- ToolCallAgent Architecture
- Multiple LLM Providers (OpenAI, Anthropic, Gemini)
- Node.js 18+ and npm/yarn
- Python 3.12+
- Neo N3 wallet (NeoLine)
- LLM API Key (OpenAI, Anthropic, or Gemini)
- Neo RPC access (testnet or mainnet)
git clone https://github.com/yourusername/predictx.git
cd predictxcd backend
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Copy environment file
cp .env.example .env
# Edit .env and add your configurationBackend Environment Variables (.env):
# Neo Blockchain
NEO_RPC_URL=https://testnet1.neo.coz.io:443
NEO_CONTRACT_HASH=0x76834b08fe30a94c0d7c722454b9a2e7b1d61e3a
NEO_NETWORK=testnet
# NeoFS
NEOFS_ENDPOINT=https://rest.fs.neo.org
NEOFS_OWNER_ADDRESS=your_address_here
NEOFS_PRIVATE_KEY_WIF=your_wif_here
NEOFS_PUBLIC_CONTAINER_ID=CeeroywT8ppGE4HGjhpzocJkdb2yu3wD5qCGFTjkw1Cc
# LLM API Keys (at least one required)
OPENAI_API_KEY=your_key_here
# OR
ANTHROPIC_API_KEY=your_key_here
# OR
GEMINI_API_KEY=your_key_here
# Default LLM Provider
DEFAULT_LLM_PROVIDER=gemini
DEFAULT_MODEL=gemini-2.0-flash-expcd agents
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Install SpoonOS SDK
pip install spoon-ai-sdk
# Copy environment file
cp env.template .env
# Edit .env and add your API keyscd frontend
# Install dependencies
npm install
# or
yarn install
# Copy environment file
cp .env.example .env.local
# Edit .env.local and add your configurationFrontend Environment Variables (.env.local):
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_NEO_RPC_URL=https://testnet1.neo.coz.io:443
NEXT_PUBLIC_CONTRACT_HASH=0x76834b08fe30a94c0d7c722454b9a2e7b1d61e3aSee contracts/README.md for detailed instructions on building and deploying the smart contract.
cd backend
source venv/bin/activate
uvicorn main:app --reload --host 0.0.0.0 --port 8000cd frontend
npm run devThe application will be available at:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
noro/
βββ agents/ # SpoonOS AI agents
β βββ analyzer_agent.py
β βββ trader_agent.py
β βββ judge_agent.py
β βββ orchestrator.py
β βββ tools/ # Custom tools for agents
βββ backend/ # FastAPI backend
β βββ main.py # Main API server
β βββ neo_rpc_client.py
β βββ neo_contract_client.py
β βββ neofs_client.py
β βββ agent_service.py
βββ contracts/ # Neo N3 smart contracts
β βββ PredictXMarket.cs
βββ frontend/ # Next.js frontend
β βββ src/
β βββ app/ # Next.js app router
β βββ components/
β βββ lib/
βββ README.md
POST /markets/create- Create a new prediction marketGET /markets- List all marketsGET /markets/{id}- Get market details
POST /markets/{id}/analyze- Trigger agent analysisPOST /markets/{id}/trade/propose- Get trade proposalPOST /markets/{id}/trade/execute- Execute trade
WS /ws/agent-logs/{market_id}- Real-time agent logs
See backend/README.md for complete API documentation.
createMarket(question, description, category, resolveDate, oracleUrl)- Create marketbuyYes(marketId, amount)- Buy YES sharesbuyNo(marketId, amount)- Buy NO sharesgetProbability(marketId)- Get current probabilityrequestResolve(marketId, oracleUrl, filter, callbackMethod)- Request resolutionpayout(marketId)- Distribute payouts
See contracts/README.md for complete contract documentation.
# Health check
curl http://localhost:8000/health
# Create market
curl -X POST http://localhost:8000/markets/create \
-H "Content-Type: application/json" \
-d '{
"question": "Will AI achieve AGI by 2026?",
"description": "Test market",
"category": "AI",
"resolve_date": "2026-12-31T23:59:59Z",
"oracle_url": "pubmed",
"initial_liquidity": 10.0
}'cd agents
python orchestrator.pySee SAMPLE_MARKET_DATA.txt and sample_markets.json for ready-to-use market examples.
Noro is perfect for:
- Medical Research: FDA approvals, clinical trial outcomes, treatment efficacy
- Technology: Quantum computing milestones, AI breakthroughs, hardware innovations
- Climate Science: Temperature records, weather patterns, environmental events
- Energy: Fusion milestones, renewable energy adoption, energy policy impacts
- Scientific Research: Breakthrough discoveries, research milestones, publication predictions
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Neo Blockchain - For the amazing blockchain platform
- SpoonOS - For the powerful AI agent framework
- NeoFS - For decentralized storage
- All contributors and the open-source community
- Project Repository: GitHub
- Issues: GitHub Issues
- Documentation: Wiki
- Enhanced security and access control
- More sophisticated risk management
- Additional data sources for agents
- Portfolio optimization across markets
- Advanced oracle integration
- Mobile application
- Social features and market sharing
- Analytics dashboard for traders
Built with for the Neo and SpoonOS communities
β Star this repo if you find it helpful!