CryptoTokenFraudAnalyzer is an intelligent Telegram bot that provides comprehensive risk analysis of cryptocurrency tokens by combining:
- Smart contract analysis (Etherscan/BscScan API)
- Market data (CoinGecko API)
- News sentiment analysis (Web scraping + LLM)
- AI-powered insights (Google Gemini)
- Machine learning risk scoring (XGBoost)
- Contract verification status
- Detection of suspicious functions (
mint
,pause
,blacklist
) - Market volatility indicators
- CEX/DEX listing status
- Historical price dump detection
- News sentiment analysis
- Real-time news aggregation from crypto sources
- LLM-powered sentiment scoring (Positive/Neutral/Negative)
- Key event detection (partnerships, hacks, regulations)
- Natural language reports generated by Gemini
- Clear risk assessment (Safe/Scam) with news impact factor
- Telegram-friendly formatting with emoji visualization
- XGBoost model with news features
- Binary classification (scam/not_scam)
- Dynamic weight adjustment based on news
- Confidence scoring system
graph TD
A[User Request] --> B[Telegram Bot]
B --> C{Input Type}
C -->|Contract Address| D[Blockchain Analysis]
C -->|Token Symbol| E[Market Data Lookup]
D --> F[Feature Extraction]
E --> F
F --> G[News Aggregation]
G --> H[LLM Sentiment Analysis]
F --> I[ML Risk Scoring]
H --> I
F --> J[Gemini Report Generation]
I --> J
J --> K[Final Report]
K --> L[User Delivery]
- Clone the repository:
git clone https://github.com/vaskers5/crypto_token_fraud_analyzer
cd crypto_token_fraud_analyzer
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp .env.example .env
# Fill in your API keys
- Run the bot:
python main.py
- Multi-modal analysis combining technical, market and news data
- Novel news impact scoring algorithm
- Dynamic risk assessment model
- Comprehensive validation framework
Component | Description | Tech Used |
---|---|---|
Data Collector | Fetches blockchain and market data | Etherscan, CoinGecko |
Feature Engine | Extracts risk indicators | Pandas, NumPy |
ML Model | Predicts scam probability | XGBoost, Scikit-learn |
AI Reporter | Generates natural language reports | Google Gemini |
Telegram UI | User interaction interface | python-telegram-bot |
Metric | Score |
---|---|
Prediction Accuracy | 87.1% |
Report Generation | <7s |