A real-time token monitoring and analysis tool for the Solana blockchain.
- WebSocket integration for instant token detection
- Automatic validation and risk assessment
- Real-time notifications of new token launches
- Track and analyze top traders for any Solana token
- Detailed metrics including:
- Token holdings with USD value
- Transaction history and success rates
- Trading patterns and activity timeline
- Unique tokens traded
- Historical data storage for trend analysis
- Concurrent processing for efficient data gathering
- Token contract validation
- Security score calculation
- Risk factor identification
- Automated risk assessment
- Clone the repository:
git clone https://github.com/yourusername/pumpfun-token-parser.git
cd pumpfun-token-parser- Install dependencies:
pip install -r requirements.txt- Helius API Key (Required for trader analytics)
- Sign up at Helius
- Get your API key from the dashboard
The application uses the following configuration files:
config.py: Global configuration settingsdatabase/database.py: Database configuration and models
Run the application with your Helius API key:
python main.py --api-key YOUR_HELIUS_API_KEYThe application provides an interactive menu with the following options:
-
Monitor New Tokens (Real-time)
- Start real-time monitoring of new token launches
- Automatically analyze traders for new tokens
- Store analysis results in the database
-
Analyze Specific Token
- Input a token address to analyze its traders
- View detailed trader metrics including:
- Wallet address
- Token balance with USD value
- Transaction statistics
- Trading success rate
- Last active timestamp
-
Exit
- Gracefully shut down the application
Top Traders:
1. Wallet: AbC...XyZ
Balance: $BONK 1,000,000.000000000 ($1,234.56)
Total Transactions: 150
Successful Trades: 120
Failed Trades: 30
Unique Tokens Traded: 45
Last Active: 2024-01-13 12:34:56
The application uses SQLAlchemy for database management with two main models:
Token: Stores validated token informationTraderAnalysis: Stores trader analytics data
- Automatic database initialization
- Connection pooling for efficient access
- Automatic schema updates
- Transaction-based data storage
main.py: Application entry point and menu interfacemodules/:pumpfun_parser.py: Token monitoring and validationtrader_analytics.py: Trader analysis and metricsrug_check.py: Risk assessment module
database/: Database models and managementutils/: Utility functions and logging
aiohttp: Async HTTP client for API callswebsockets: WebSocket client for real-time datasqlalchemy: Database ORMpandas: Data analysis and processing- Additional dependencies in
requirements.txt
Comprehensive logging system with:
- Error tracking
- Performance monitoring
- Activity logging
- Debug information
Logs are stored in the logs/ directory with daily rotation.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.