CEREBRIX
Cross-chain AI marketplace: Build, deploy & execute autonomous agents with instant bridging.
Problem Statement
Cerebrix: The Brain of Multi-Chain AICerebrix is a decentralized platform for building, deploying, and executing AI-powered autonomous agents across multiple blockchain networks. Think of it as "AWS Lambda for Web3 AI" - developers can create intelligent agents that execute automatically based on market conditions, custom logic, or external data sources.The ProblemCurrent blockchain applications lack intelligent, autonomous decision-making capabilities. Developers struggle to:Execute complex logic across multiple chainsIntegrate AI with on-chain actionsCreate reusable, monetizable AI strategiesBridge assets and execute cross-chain seamlesslyOur SolutionCerebrix provides a complete infrastructure for autonomous AI agents:🤖 Three Execution ModelsTemplate Strategies: Pre-built AI logic (e.g., momentum trading)Analyze market data in real-timeGenerate BUY/SELL/HOLD signalsExecute based on configurable thresholdsCustom Endpoints: Your own execution logicPOST market data to your webhookReturn custom decisionsFull control over strategyPlatform Default: Fallback executionEnsures agents always workBasic market analysis🌉 Cross-Chain ExecutionDeploy once, execute anywhereSupport for 5 testnets: Sepolia, Arbitrum Sepolia, Base Sepolia, Optimism Sepolia, Polygon AmoyAutomatic bridging via Avail Nexus SDK when executing on different chainsReal-time event detection across all chains💰 Monetization & Revenue SharingCreators set price per execution (in USDC)Built-in revenue sharing mechanismOn-chain payment processingTransparent earnings tracking🎯 Developer ExperienceJSON-based agent configurationExample templates providedSimple REST APIMulti-chain event listeningReal-time execution resultsUse CasesTrading Bots: Momentum strategies, mean reversion, arbitrageDeFi Automation: Yield optimization, rebalancing, liquidation protectionNFT Tools: Rarity sniping, floor price monitoring, auto-biddingData Oracles: Custom data feeds, aggregation, verificationGaming: Auto-claiming rewards, breeding automation, marketplace botsWhy Cerebrix?✅Multi-Chain Native: Built for interoperability from day one✅Developer-First: Simple APIs, clear documentation, example configs✅Monetizable: Turn your AI strategies into revenue streams✅Composable: Mix templates, custom logic, and platform defaults✅Real-Time: Event-driven architecture with instant execution✅Secure: Smart contract-based with USDC paymentsCerebrix democratizes AI agent creation, making it accessible to any developer while enabling sophisticated cross-chain strategies.
Solution
Tech StackFrontend: React 19 + TypeScript + Vite, wagmi v2, RainbowKit, Tailwind CSSBackend: Node.js + Express, ethers.js v6, Prisma + SQLite, OpenAI APIContracts: Solidity smart contracts, multi-chain deployment (same address), USDC paymentsPartner Integrations🌉 Avail Nexus SDKEnables seamless cross-chain execution. When users execute agents on different chains, we automatically route through the Nexus SDK'sbridgeAndExecute()function. Successfully tested with Intent #1263 - bridged 3 USDC from Sepolia to Arbitrum Sepolia and executed automatically. This eliminates the manual bridging friction and creates a unified multi-chain UX.📊 Pyth NetworkPowers our momentum strategy with real-time price feeds. We use Pyth's sub-second BTC/ETH prices to generate trading signals with 200ms latency (vs 2-3s with traditional APIs). The institutional-grade accuracy and multi-chain consistency make momentum strategies reliable across all our supported chains.🔍 Blockscout Explorer IntegrationWe integrate Blockscout explorer links throughout the user experience. After each execution, users receive transaction notifications with direct Blockscout links to verify their transactions on-chain. This provides transparency across all 5 testnet chains, allowing users to track execution status, gas costs, and confirmation times. Blockscout's multi-chain coverage makes it perfect for our cross-chain platform.Key Technical AchievementsMulti-Chain Event Listening: Single backend process monitors 5 chains simultaneously using separate ethers.js providers. When anAgentExecutedevent fires on any chain, we detect it, process with AI, and store results - all in under 1 second.Smart Bridge Detection: Frontend automatically detects when execution requires bridging (different chain or insufficient balance) and routes through Nexus SDK transparently. Users don't need to think about bridging.Hybrid Price + AI: Momentum strategy combines Pyth's real-time prices (fast) with OpenAI analysis (smart) for confident trading signals. Pyth handles speed, AI handles reasoning.Multi-Chain Transaction History: Using Blockscout SDK, we provide transaction transparency across all chains. When users execute agents, we generate Blockscout explorer links for each transaction, displayed in success notifications and execution history. This gives users immediate access to on-chain verification, gas usage details, and transaction status across all 5 testnets. Also, the on-chain transaction analytics of the user is visible in the agent's detail pageNotable Challenges SolvedSame contract address across chains- Used CREATE2 for consistent deploymentReal-time multi-chain monitoring- Parallel event listeners with source chain trackingTemplate + custom logic- JSON-based config system for flexible executionCross-chain UX- Avail Nexus makes it feel like a single chainWhy These Technologies MatterAvail Nexus: Makes multi-chain feel like single-chain (no manual bridges)Pyth: Fast, accurate prices for reliable strategy executionBlockscout: Transparency and verification across all chainsAlchemy: Reliable infrastructure for 24/7 event monitoringTesting Results✅ Cross-chain execution via Nexus (Intent #1263)✅ Momentum strategy with Pyth feeds (BTC @ $111,858 → SELL)✅ Blockscout verification on all 5 chains✅ Custom webhook POST requests✅ Multi-chain event detection is working
Hackathon
ETHOnline 2025
2025
Contributors
- BahadorGh
1 contributions