Onchain Buddy is an AI assistant that helps beginners understand their blockchain activities. It analyzes transactions, explains them in simple terms, and guides users to learn about blockchain in a safe and proper way.
As your personal blockchain companion he acts as a real-time translator between complex blockchain operations and everyday language.
To making your first token swap or approving a new smart contract, it break down each action in clear and understandable explanations.
How it's made
OnchainBuddy was built using a combination of modern technologies and AI capabilities to create an educational blockchain experience. Here's a detailed breakdown of the technical implementation:
Core Architecture
Frontend Layer
- Built with Next.js for optimal performance and SEO
- Styled using TailwindCSS for rapid UI development
- Enhanced with Material-UI (MUI) components for consistent design
- Framer Motion for smooth animations and transitions
- Real-time updates using React hooks and state management
AI Agent Layer
- Powered by GPT-4 for natural language processing
- Integrated with AgentKit (Coinbase's AI framework) for:
- Transaction analysis
- Risk assessment
- User-level appropriate explanations
- Learning path optimization
Blockchain Integration
- Built on Base Network for reliable and cost-effective transactions
- Used OnchainKit (Coinbase's toolkit) for seamless wallet integration
- Implemented Ethers.js for blockchain interactions:
- Transaction monitoring
- Contract interaction
- Event parsing
- Gas estimation
Backend Infrastructure
- Node.js backend with Express
- Prisma for database management
- BaseEther for Base Network RPC calls
- Basescan API for transaction verification
Notable Technical Features
Dynamic Learning System
The XP and leveling system uses a complex algorithm that considers:
- Transaction complexity
- Risk assessment scores
- User interaction frequency
- Contract interaction diversity
Real-time Transaction Monitoring
Implemented a WebSocket connection to monitor blockchain activities with:
- Instant transaction detection
- Automatic risk assessment
- Real-time notifications
- Custom event parsing
Smart Contract Analysis
Created a custom analysis pipeline that:
- Verifies contract security
- Analyzes gas usage patterns
- Monitors value transfers
- Evaluates interaction complexity
Partner Technologies Integration
Base Network
- Utilized Base Network for its optimal performance and lower gas fees
- Leveraged Base's RPC endpoints for reliable blockchain data
- Integrated with Basescan API for transaction verification
Coinbase Tools
- AgentKit: Implemented for AI agent capabilities and blockchain analysis
- OnchainKit: Used for robust wallet integration and transaction handling
Thank's for this geat opportunity, It was a pleasure to learn new technologies :)