ChainMind

AI-powered DeFi chatbot with real-time analytics, security analysis & multi-chain portfolio tracking

ChainMind

Created At

ETHOnline 2025

Project Description

ChainMind is an intelligent chatbot that makes DeFi simple through natural conversation. Instead of navigating complex dashboards and multiple blockchain explorers, users simply ask questions like "What's in my portfolio?" or "Is this protocol safe?" and get instant, accurate answers.

What It Does:

AI Chat: Ask anything about crypto in plain English - portfolio analysis, market trends, security checks, or DeFi education. The AI understands context and provides professional analysis with risk warnings. Multi-Chain Portfolio: Automatically tracks all your tokens, NFTs, and DeFi positions across Ethereum, Polygon, Arbitrum, Optimism, and Base in one unified view. Security Analysis: Instantly evaluates smart contract safety, checks audit status, and provides risk scores for any DeFi protocol. Real-Time Market Data: Live price feeds, trending tokens, and market alerts powered by Pyth Network's on-chain oracles. Wallet-Based Auth: Connect your wallet once using Lit Protocol - no passwords, no emails, fully decentralized. Built with AI: The entire project was developed using AI, from architecture design to code implementation, demonstrating how AI can accelerate Web3 development.

How it's Made

ech Stack:

Backend: Node.js + TypeScript + Express + MongoDB + Redis + Socket.io Frontend: React + TypeScript + Tailwind CSS + RainbowKit + Wagmi AI: Google Gemini 2.5 (Flash & Pro models) Blockchain: Hardhat + ethers.js + Solidity Sponsor Integrations:

ASI Alliance - Gemini AI: Powers the conversational agent. We use Gemini 2.5 Flash for quick responses and Pro for complex analysis. Custom system prompts make it a crypto expert that understands DeFi protocols, provides risk assessments, and gives DYOR guidance in professional English.

Pyth Network: Real-time price feeds via Hermes API. We cache prices in Redis and update every 30 seconds, providing accurate market data for 100+ cryptocurrencies with sub-second latency.

Lit Protocol: Wallet-based authentication and encrypted data storage. Users sign once to create sessions, eliminating traditional logins. Sensitive data is encrypted so only the wallet owner can decrypt it.

Blockscout: Multi-chain explorer API for contract verification, transaction history, and security analysis. We analyze source code patterns to detect vulnerabilities and check audit status.

Hardhat: Smart contract development with comprehensive testing. ChainMindRegistry and ChainMindToken contracts with 90%+ test coverage.

Envio: Multi-chain indexer configuration ready (config files, event handlers, GraphQL schema, frontend hooks all implemented). Deployment pending contract addresses.

Key Technical Highlights:

AI-Assisted Development: Built entirely using Cascade AI - from initial architecture to final implementation. This showcases how AI can accelerate Web3 development while maintaining code quality.

Real-Time Architecture: WebSocket-powered chat with typing indicators, message streaming, and live portfolio updates. Users see the AI "thinking" with dynamic status messages.

Multi-Chain Abstraction: Unified interface supporting 5 chains. Adding new chains requires minimal code changes thanks to our abstraction layer.

Smart Caching: Redis reduces API calls by 80%. Market data, portfolios, and security analyses are cached with intelligent invalidation.

Graceful Degradation: If external services fail, the app falls back to cached data. Users never see broken experiences.

Production-Ready: Comprehensive error handling, logging, monitoring, and Docker deployment configuration. Ready to scale.

Current Status: Fully functional with backend running on port 3001, frontend on port 3000, MongoDB Atlas connected, and all sponsor technologies integrated and working.

background image mobile

Join the mailing list

Get the latest news and updates

ChainMind | ETHGlobal