AI-Powered Optimistic Dispute Resolution Oracle for Prediction Markets
Powered by Chainlink CRE
Website • ResolveX Introduction • Demo Video • Process Flow • How It Works • Smart Contracts
Traditional optimistic oracles are fundamentally broken for the scale prediction markets need today:
| Problem | Impact |
|---|---|
| Manual Resolution | Someone must manually propose every result — not scalable |
| Slow Settlement | 24h verification + 24-48h dispute window = 72+ hours to claim winnings |
| High Cost | Manual processes and on-chain compute drive up resolution fees |
| Single-Chain | Deployed on 1-2 chains only; no multi-chain or Web2 integration |
| Poor UX | Dispute voting requires complex on-chain encryption/decryption |
With 4M+ prediction markets created annually and $288B+ in projected 2026 volume, manual resolution simply cannot keep up.
ResolveX solves traditional oracle problems by combining off-chain AI compute and cross-chain actions powered by Chainlink CRE (Compute Runtime Environment).
┌─────────────────────────────────────────────────────────┐
│ ResolveX Flow │
│ │
│ Market Matures │
│ │ │
│ ▼ │
│ AI Resolution (via CRE Workflow) │
│ │ │
│ ├── Confidence ≥ 90% ──▶ ⚡ INSTANT SETTLEMENT │
│ │ (under 60 seconds) │
│ │ │
│ └── Confidence < 90% ──▶ 🔄 Dispute Workflow │
│ (max 48 hours) │
└─────────────────────────────────────────────────────────┘
80% of markets are resolved instantly. The remaining 20% settle within 48 hours max.
- AI-First Resolution — Gemini AI + Google Grounding Search resolves markets with a confidence score
- Powered by Chainlink CRE — Off-chain compute for AI inference, on-chain verification for trust
- Multi-Chain from Day 1 — Cross-chain resolution via Chainlink CCIP
| Contract | Description |
|---|---|
| ResolveX Oracle | Core contract — receives resolution requests, emits events for CRE, stores AI reports |
| ResolveX Token | Protocol token used for staking and fee payments |
| Case Manager | Manages the lifecycle of each resolution case |
| Disputer Registry | Handles registration and staking for disputers |
| Juror Registry | Manages jury panel registration and staking |
| Voting Engine | Handles encrypted voting during dispute resolution |
| CRE Consumer | Interface between Chainlink CRE workflows and on-chain contracts |
Two Chainlink CRE workflows power the off-chain compute:
-
AI Resolution Workflow — Triggers when
ResolutionRequestedevent is emitted. Reads market data from Base Sepolia, resolves using Gemini AI with Google Grounding Search, and posts the confidence score + report back on-chain. -
Vote Decryption Workflow — Handles off-chain decryption of jury votes during the dispute process, eliminating expensive on-chain encryption/decryption.
Prediction Market ResolveX Contract Chainlink CRE Gemini AI
│ │ │ │
│ 1. Request Resolution │ │ │
│ (market question, outcomes) │ │ │
├───────────────────────────────▶│ │ │
│ │ 2. Emit ResolutionRequested │ │
│ ├─────────────────────────────▶│ │
│ │ │ 3. Resolve with AI │
│ │ ├───────────────────────▶│
│ │ │ │
│ │ │ 4. Confidence Score │
│ │ │◀────────────────────────┤
│ │ 5. Post Report (score ≥90%) │ │
│ │◀─────────────────────────────┤ │
│ 6. Market Settled ⚡ │ │ │
│◀───────────────────────────────┤ │ │
│ │ │ │
│ ⏱️ Total Time: < 60 seconds │ │ │
When AI confidence score is < 90%, the case enters the dispute workflow:
- Disputer stakes tokens and files a dispute
- Jury Panel (registered & staked jurors) cast encrypted votes
- CRE Vote Decryption Workflow decrypts votes off-chain
- Majority decision settles the market
- Total time: max 48 hours
| Actor | Role |
|---|---|
| Client | Prediction market creator who places resolution requests |
| Disputer | Disputes AI resolution when confidence < 90% |
| Jurors | Registered & staked jury panel who vote on disputes |
1. Place Resolution Request
- As a prediction market creator, call the ResolveX smart contract with market question, condition, and outcomes
- Execute via Hardhat script → transaction confirmed on Base Sepolia
ResolutionRequestedevent emitted for CRE to monitor
2. Trigger CRE Workflow
- Input transaction hash and event index
- CRE reads market data from Base Sepolia testnet
- Gemini AI + Google Grounding Search resolves the market
3. Instant Settlement
- AI resolved with 100% confidence score
- CRE wrote report back to ResolveX smart contract
- Market settled instantly — under 60 seconds
| Layer | Technology |
|---|---|
| Blockchain | Base Sepolia (Testnet) |
| Smart Contracts | Solidity, Hardhat |
| Oracle Infrastructure | Chainlink CRE (Compute Runtime Environment) |
| AI Model | Gemini AI with Google Grounding Search |
- Node.js >= 18
- Hardhat
- Chainlink CRE access
# Clone the repository
git clone https://github.com/YOUR_USERNAME/ResolveX_Convergence.git
cd ResolveX_Convergence
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Fill in your private key, RPC URL, and API keysCreate a .env file with the following:
PRIVATE_KEY=your_wallet_private_key
BASE_SEPOLIA_RPC_URL=your_base_sepolia_rpc
GEMINI_API_KEY=your_gemini_api_key
CHAINLINK_CRE_CONFIG=your_cre_configResolveX is deeply integrated with the Chainlink ecosystem:
| Chainlink Product | Usage in ResolveX |
|---|---|
| CRE (Compute Runtime Environment) | Off-chain AI inference + vote decryption workflows |
| Price Feeds | Reliable price data for financial market resolution |
| Automation | Trigger-based resolution cycles |
This integration creates significant value for the Chainlink ecosystem through substantial CRE utilization, deep Price Feed integration, and CCIP adoption — potentially scaling to millions of workflow calls.
| Resource | URL |
|---|---|
| Website | resolvex.xyz |
| ResolveX Introduction | YouTube |
| Working Demo | YouTube |
This project is licensed under the MIT License — see the LICENSE file for details.
Resolve Markets in Minutes. Not Days.
Built for the high-speed resolution future.

