A real-time monitoring and analysis tool that helps detect suspicious activities and potential fraud in Solana token transactions.
- Real-time transaction monitoring for Solana tokens
- Automated suspicious activity detection
- Transaction history analysis
- API integration with Helius for comprehensive transaction data
- LLM-powered fraud pattern recognition
# Clone the repository
git clone https://github.com/yourusername/solana-token-fraud-detector.git
cd solana-token-fraud-detector
# Install dependencies
npm install
# Build the project
npm run buildCreate a .env file in the root directory with the following variables:
# Environment
ENVIRONMENT=development
PORT=3001
# Solana
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
HELIUS_API_KEY=your_helius_api_key_here
# LLM Configuration
OPENROUTER_API_KEY=your_openrouter_api_key_here
LLM_MODEL=mistralai/mistral-7b-instruct
LLM_API_URL=https://openrouter.ai/api/v1/chat/completions
LLM_MAX_TOKENS=500
LLM_TEMPERATURE=0.1
LLM_CACHE_EXPIRY_MS=3600000
Start the application:
npm startFor development with hot reloading:
npm run devPOST /api/token/monitor- Start monitoring a specific tokenPOST /api/token/analyze- Analyze transaction history for a tokenGET /api/token/:address/transactions- Get recent transactions for a token
The system monitors Solana token transactions in real-time by:
- Subscribing to token account changes on the Solana blockchain
- Fetching transaction details using Helius API
- Analyzing transaction patterns to detect suspicious activity
- Providing alerts and reports on potential fraud
- Node.js
- Solana Web3.js
- Helius API
- OpenRouter API (for LLM integration)
MIT
Contributions are welcome! Please feel free to submit a Pull Request.