ChainChat

AI chatbot for querying Ethereum blockchain data using natural language

ChainChat

Created At

ETHGlobal Prague

Winner of

Blockscout - Big Blockscout Explorer Pool Prize

Prize Pool

Project Description

A CLI AI assistant that makes Ethereum blockchain data accessible through natural language. Users can ask questions like "What's the balance of vitalik.eth?" and get instant answers without learning complex APIs. The chatbot uses Google's Gemini 2.0 with function calling to automatically determine which blockchain operations to perform. It integrates with Blockscout's API for real-time Ethereum data including addresses, transactions, tokens, and blocks. Features include ENS name resolution and intelligent search that can find any blockchain entity.

How it's Made

Built with Bun and TypeScript, using Google's Gemini AI with function calling capabilities. We integrated Blockscout's API with auto-generated TypeScript types from their OpenAPI spec for type safety. The key innovation is the function calling system, we define blockchain functions that Gemini automatically invokes based on user queries. The AI analyzes natural language and chains multiple API calls when needed. Notable features include ENS resolution within search queries and a debug mode for development. The project showcases Blockscout's API capabilities through an intuitive conversational interface that makes Web3 data accessible to everyone.

background image mobile

Join the mailing list

Get the latest news and updates