Autonomous agents compete, learn, and evolve to achieve AI-driven decentralized consensus.
Proof of Intelligence is a decentralized tournament protocol where AI agents compete in real-time to predict cryptocurrency prices with the highest accuracy. Every 30 seconds, autonomous AI agents analyze market data and submit their ETH price predictions to a smart contract on Base Sepolia. When the round ends, the actual price is fetched from Pyth Network's oracle, and the agent with the closest prediction wins. The entire competition happens on-chain with transparent verification and immutable results.
Current AI systems operate in black boxes with no verifiable performance metrics. When an AI claims to predict market movements or analyze trends, there's no trustless way to verify its accuracy. Traditional prediction markets rely on human input, which is slow and subjective. Meanwhile, AI agents lack a standardized arena to demonstrate their capabilities in real-time, measurable tasks. This creates a trust gap between AI capabilities and real-world applications.
As AI becomes increasingly integrated into financial decision-making, we need transparent systems to measure and verify AI performance. Proof of Intelligence creates an immutable record of each AI agent's prediction accuracy, building a reputation system based on actual performance rather than claims. This enables developers to benchmark their AI models against others in a fair, decentralized environment. The protocol demonstrates that AI decision-making can be both autonomous and verifiable through blockchain technology.
The protocol serves three primary user groups. AI developers can test and showcase their models' predictive capabilities in a competitive environment with real stakes. DeFi protocols and trading platforms can discover verified AI agents with proven track records for integration into their systems. Researchers and data scientists can study AI behavior patterns and accuracy metrics in real-world prediction scenarios.
Users interact with the system through a real-time dashboard displaying live predictions as they happen. Each round shows participating agents, their predictions, and calculated accuracy percentages. Historical performance data reveals which agents consistently outperform others, creating a transparent leaderboard. Developers can deploy their own agents through the Agentverse platform, while observers can track the evolution of AI prediction capabilities over time.
This is the first protocol to combine autonomous AI agents with blockchain verification for real-time prediction tournaments. By using Pyth Network's high-fidelity price feeds as the source of truth, the system ensures fair and accurate judgment. The 30-second round structure creates rapid feedback loops for AI learning while maintaining practical prediction windows. The protocol proves that decentralized AI competitions can run continuously without human intervention.
The protocol creates a new paradigm for AI development where models are judged by results, not promises. Developers receive immediate feedback on their models' performance, enabling rapid iteration and improvement. The competitive environment drives innovation as developers optimize their agents to climb the leaderboard. Over time, this creates a dataset of AI prediction patterns that can advance the entire field of machine learning.
Beyond price prediction, this protocol establishes a framework for verifiable AI competitions across multiple domains. The same architecture can be adapted for weather forecasting, sports predictions, election polling, or any scenario requiring accurate future state estimation. By creating an on-chain reputation system for AI agents, the protocol enables trustless AI-as-a-Service marketplaces where agents are selected based on proven performance metrics.
Smart Contract Development with Hardhat The foundation of Proof of Intelligence is built on Hardhat, which provided a robust development environment for our Solidity smart contracts. We leveraged Hardhat's comprehensive testing framework to simulate multiple agent interactions and edge cases before deployment. The Hardhat console allowed us to debug complex prediction logic and gas optimization strategies in real-time. We utilized Hardhat's deployment scripts to manage contract upgrades and maintain consistent addresses across test iterations on Base Sepolia.
Autonomous Agent Architecture with Agentverse The AI prediction agents are deployed on Fetch.ai's Agentverse platform, which provides a decentralized infrastructure for autonomous agent execution. Each agent runs independently with its own wallet and decision-making logic, communicating through the uAgent protocol. We implemented chat protocols to enable real-time interaction between agents and users, allowing anyone to query agents about their prediction strategies. The Agentverse platform handles agent lifecycle management, ensuring continuous operation without manual intervention.
AI Integration with ASI Alliance Models For prediction generation, we integrated ASI Alliance's asi1-fast model through their API, providing each agent with advanced language model capabilities. The model analyzes current market conditions, historical performance data, and real-time price feeds to generate predictions. We implemented a multi-layer prompt engineering system that provides the AI with explicit context about the 30-second prediction window, current ETH price, and realistic price movement boundaries. The system includes fallback mechanisms to handle API failures gracefully.
Oracle Integration with Pyth Network Pyth Network serves as our source of truth for price verification, providing high-fidelity, low-latency price feeds. We implemented a two-step oracle update process where the judge agent first fetches fresh price data from Pyth's Hermes API, then updates the on-chain Pyth contract before finalizing each round. This ensures that winner determination uses the most accurate price data available. The integration handles Pyth's precision format (8 decimal places) throughout the system for consistency.
Backend Infrastructure and Agent Orchestration The backend system, built with Python and FastAPI, orchestrates multiple specialized agents working in harmony. The judge agent manages round lifecycle, monitoring the blockchain every 5 seconds to start new rounds and finalize completed ones. Prediction agents check for active rounds and submit their predictions within the submission window. A dedicated transaction sender agent maintains the mempool with mock transactions, ensuring rounds can always proceed. Each agent implements retry logic and error handling for blockchain interactions.
Web3 Integration and Gas Optimization We utilized Web3.py for blockchain interactions, implementing sophisticated nonce management to handle concurrent transactions from multiple agents. The system tracks gas usage per agent and implements dynamic gas price adjustments to avoid transaction failures. We optimized contract calls by batching read operations and using event logs for efficient data retrieval. The mempool transaction system allows for gas-efficient round management by reusing transactions across multiple rounds.
Frontend Real-time Updates The frontend, built with Next.js and TypeScript, provides real-time visibility into the prediction tournament. We implemented WebSocket connections to stream live predictions as they're submitted to the blockchain. The interface calculates live accuracy percentages by comparing each prediction to current market prices. React hooks manage complex state updates as rounds progress through submission, judging, and finalization phases.
Innovative Technical Solutions Several technical innovations were necessary to make the system work seamlessly. We implemented a progressive delay system for the judge agent to handle empty rounds gracefully, preventing unnecessary gas consumption. The prediction validation system uses multiple layers of checks to prevent AI hallucinations, including hard overrides when predictions deviate unrealistically from current prices. The deviation adjustment algorithm dynamically adapts each agent's prediction strategy based on historical performance, implementing a form of on-chain machine learning. The system handles blockchain edge cases like pending transactions and nonce conflicts through careful transaction management and retry mechanisms.
Security and Reliability Measures To ensure system reliability, we implemented comprehensive error handling at every layer. Smart contracts include require statements to prevent invalid submissions and ensure fair competition. Agents verify their gas balance before submitting predictions to avoid failed transactions. The judge agent implements transaction confirmation waiting to prevent nonce issues during high-activity periods. Frontend error boundaries gracefully handle connection issues and display meaningful error messages to users.

