Skip to content

Caerlower/echo-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– EchoWallet - AI-Powered Blockchain Assistant with Real-Time Monitoring

EchoWallet is a comprehensive blockchain wallet assistant that provides detailed insights into wallets on the Base blockchain with real-time transaction monitoring and alerts. It's available as both a Telegram Bot and a Modern Web App.

๐Ÿšจ NEW: Real-Time Transaction Monitoring

EchoWallet now features instant transaction monitoring with Telegram alerts:

  • โšก Real-time webhook-based monitoring (no polling delays)
  • ๐Ÿ”” Instant Telegram notifications for new transactions
  • ๐ŸŽฏ Customizable alerts (amount thresholds, token types, transaction types)
  • ๐Ÿ“Š Smart filtering (incoming/outgoing, specific tokens, minimum amounts)
  • ๐Ÿ”„ Automatic monitoring (starts immediately, runs continuously)

๐Ÿ“ฑ Two Ways to Use EchoWallet

๐ŸŒ Web App (Recommended)

  • Modern chat-based interface
  • Wallet connection support
  • Real-time portfolio tracking
  • Transaction monitoring dashboard
  • Beautiful, responsive UI
  • AI-powered insights

๐Ÿ“ฑ Telegram Bot

  • Simple chat interface
  • Quick wallet analysis
  • Portfolio overview
  • Transaction history
  • Real-time monitoring alerts

๐Ÿš€ Quick Start

Web App (Recommended)

# Navigate to web app
cd webapp

# Start backend
cd backend && npm install && npm run dev

# Start frontend (new terminal)
cd frontend && npm install && npm run dev

# Open http://localhost:3000

Telegram Bot (Legacy)

# Navigate to Telegram bot
cd TelegramBot

# Install dependencies
npm install

# Configure environment
cp env.example .env
# Add your API keys

# Start the bot
npm start

โœจ Features

๐ŸŽฏ Core Capabilities

  • Portfolio Analysis: Total USD values, asset breakdowns
  • Transaction History: Native ETH and token transfers
  • ENS Resolution: Support for ENS names
  • AI-Powered Insights: Intelligent wallet analysis
  • Real-time Data: Live blockchain data via Nodit APIs
  • Search Functionality: Find specific transactions

๐Ÿšจ Real-Time Monitoring

  • Webhook-Based Alerts: Instant transaction notifications
  • Custom Alert Rules: Amount thresholds, token types, transaction directions
  • Telegram Integration: Direct notifications to your chat
  • Smart Filtering: Only relevant transactions trigger alerts
  • Automatic Setup: Easy webhook configuration
  • Multiple Wallets: Monitor multiple addresses simultaneously

๐Ÿค– AI Integration

  • Perplexity AI: Human-readable wallet analysis
  • Pattern Recognition: Activity patterns and risk assessment
  • Conversational Interface: Natural language queries
  • Contextual Suggestions: Smart recommendations

๐Ÿ”— Blockchain Integration

  • Nodit APIs: Comprehensive blockchain data
  • Nodit Webhooks: Real-time transaction notifications
  • Base Chain: Full Base mainnet support
  • Multi-Token: ETH and ERC-20 tokens
  • ENS Support: Ethereum Name Service

๐Ÿ—๏ธ Architecture

Web App (/webapp)

webapp/
โ”œโ”€โ”€ backend/          # Express.js API server
โ”‚   โ”œโ”€โ”€ routes/       # API endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ webhook.js              # Webhook receiver
โ”‚   โ”‚   โ”œโ”€โ”€ webhook-monitoring.js   # Monitoring management
โ”‚   โ”‚   โ”œโ”€โ”€ monitoring.js           # Legacy polling system
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ services/     # Business logic
โ”‚   โ”‚   โ”œโ”€โ”€ webhook-monitoring.js   # Real-time monitoring
โ”‚   โ”‚   โ”œโ”€โ”€ monitoring.js           # Legacy polling
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ server.js     # Main server
โ””โ”€โ”€ frontend/         # Next.js React app
    โ”œโ”€โ”€ components/   # React components
    โ”‚   โ”œโ”€โ”€ MonitoringPanel.js      # Monitoring dashboard
    โ”‚   โ””โ”€โ”€ ...
    โ”œโ”€โ”€ pages/        # Next.js pages
    โ””โ”€โ”€ styles/       # CSS and styling

Telegram Bot (/TelegramBot)

TelegramBot/
โ”œโ”€โ”€ bot/             # Telegram bot logic
โ”œโ”€โ”€ services/        # API services
โ””โ”€โ”€ index.js         # Bot entry point

๐Ÿ”ง API Integration

Primary APIs

  • Nodit Data API: Portfolio and transaction data
  • Nodit Webhook API: Real-time transaction notifications
  • Nodit Node RPC: Direct blockchain interactions
  • Perplexity AI: Intelligent analysis
  • ENS: Address resolution

No External Dependencies

  • โœ… Nodit Only: All blockchain data from Nodit
  • โœ… No CoinGecko: Token prices from Nodit
  • โœ… No Etherscan: Transaction data from Nodit
  • โœ… Self-Contained: Minimal external dependencies

๐Ÿ“Š What EchoWallet Provides

For Users

  • Portfolio Overview: Total value and asset breakdown
  • Transaction Monitoring: Real-time activity tracking with alerts
  • AI Insights: Intelligent wallet analysis
  • Search Capabilities: Find specific transactions
  • ENS Support: Easy address resolution
  • Custom Alerts: Personalized notification rules

For Developers

  • Clean Architecture: Modular, maintainable code
  • API-First Design: RESTful endpoints
  • Real-time Features: WebSocket and webhook support
  • Modern Stack: React, Next.js, Express
  • Comprehensive Documentation: Detailed guides
  • Webhook System: Scalable real-time monitoring

๐ŸŽจ User Experience

Web App Features

  • Modern UI: Glass morphism design
  • Responsive: Works on all devices
  • Real-time: Live data updates
  • Interactive: Chat-based interface
  • Wallet Connect: Easy wallet integration
  • Monitoring Dashboard: Real-time alert management

Telegram Bot Features

  • Simple Commands: Easy to use
  • Quick Responses: Fast data retrieval
  • Portable: Works anywhere Telegram is available
  • No Installation: Just start chatting
  • Real-time Alerts: Instant transaction notifications

๐Ÿ”’ Security & Privacy

  • Read-Only Access: No private key storage
  • Secure APIs: Rate limiting and validation
  • CORS Protection: Secure cross-origin requests
  • Error Handling: Graceful failure management
  • Data Privacy: Minimal data collection
  • Webhook Security: Validated webhook endpoints

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+
  • Nodit API key
  • Perplexity AI key (optional)
  • Telegram Bot token (for monitoring alerts)
  • MetaMask or compatible wallet (for web app)

Environment Setup

# Required
NODIT_API_KEY=your_nodit_api_key

# Optional
PERPLEXITY_API_KEY=your_perplexity_key
TELEGRAM_BOT_TOKEN=your_telegram_token

๐Ÿ“š Documentation

๐Ÿ”ง Monitoring API Endpoints

Start Monitoring

POST /api/webhook-monitoring/start/:address
{
  "chatId": "YOUR_TELEGRAM_CHAT_ID",
  "alerts": [
    {
      "type": "incoming_funds",
      "token": "USDC",
      "amount": "0.1"
    }
  ]
}

Stop Monitoring

POST /api/webhook-monitoring/stop/:address

Check Status

GET /api/webhook-monitoring/status/:address

Test Notification

POST /api/webhook-monitoring/test-notification
{
  "chatId": "YOUR_TELEGRAM_CHAT_ID",
  "message": "Test message"
}

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the ISC License.

๐Ÿ†˜ Support

  • Documentation: Check the README files
  • Issues: Report bugs on GitHub
  • Questions: Open a discussion

๐Ÿ”ฎ Roadmap

Web App Enhancements

  • Real-time transaction monitoring
  • Webhook-based alerts
  • Telegram integration
  • WalletConnect v2 integration
  • Mobile app version
  • Advanced analytics dashboard
  • Multi-chain support
  • NFT tracking

Bot Improvements

  • Real-time monitoring alerts
  • More commands
  • Enhanced AI responses
  • Group chat support
  • Custom notifications

Built with โค๏ธ for the Base ecosystem

Choose your preferred interface and start exploring your wallet data with AI-powered insights and real-time monitoring!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors