ChainLens
Explore blockchain data through natural conversation, powered by Blockscout MCP
Problem Statement
Here are your hackathon submission answers:Description ChainLens AI is a conversational blockchain explorer that makes on-chain data accessible through natural language. Instead of navigating complex blockchain explorers, users simply ask questions like "What tokens does vitalik.eth hold?" or "Show me the latest transactions for this address" and get beautiful, easy-to-understand visualizations.The platform features:Smart Portfolio Analysis: Interactive pie charts showing token distribution by value, with detailed cards for each holding AI Transaction Summaries: Every transaction is analyzed by GPT-4 to provide human-readable explanations (e.g., "User swapped 1 ETH for 1800 USDC on Uniswap") Multi-Chain Support: Query data across Ethereum, Base, Arbitrum, Optimism, Polygon, and more ENS Integration: Automatically resolves ENS names using The Graph's ENS subgraph for reliable name resolutionChainLens AI is designed for both crypto newcomers who need simple explanations and power users who want quick insights without clicking through multiple explorer pages.
Solution
Tech Stack:Frontend: Next.js 13 (App Router) with TypeScript, Tailwind CSS, and shadcn/ui components Data Visualization: Recharts for interactive charts (pie charts, area charts) AI: OpenAI GPT-4 for transaction analysis and natural language query understanding Blockchain Data: Blockscout MCP API for multi-chain blockchain queries ENS Resolution: The Graph's ENS subgraph for reliable frontend ENS name resolution Architecture: The app uses a conversational AI flow where user queries are analyzed by GPT-4 to determine which blockchain data to fetch. The AI intelligently routes queries to the appropriate Blockscout MCP endpoints (token balances, transactions, address info, etc.), then formats responses with visualizations.Notable Implementations:AI Transaction Analysis: Each transaction fetched is automatically analyzed by GPT-4, which examines the transaction's inputs, logs, decoded data, and token transfers to generate a single, plain-text summary. This turns cryptic transaction data into human-readable insights.Frontend ENS Resolution: Rather than relying on potentially unstable backend ENS services, we query The Graph's ENS subgraph directly from the frontend before sending requests to the API, ensuring reliable name resolution.Smart Data Categorization: The API response includes structured data with proper categorization (portfolio, transactions, balance) which automatically routes to the correct visualization component - pie charts for portfolios, detailed cards for transactions, etc.Blockscout MCP Integration: Heavy use of Blockscout's comprehensive API for multi-chain support, giving users access to 15+ different blockchain networks through a single conversational interface.
Hackathon
ETHOnline 2025
2025
Contributors
- officialcmg
8 contributions