A professional blockchain intelligence and forensic analysis platform for Solana. Perform comprehensive address investigations, visualize transaction networks, detect suspicious patterns, and generate detailed compliance reports.
- Overview
- Key Features
- Installation
- Quick Start
- Tools Overview
- Output Formats
- Use Cases
- Documentation
- Project Structure
- Configuration
- Performance
- Legal Disclaimer
- Support
- License
The Solana Forensic Intelligence Platform is an enterprise-grade toolkit designed for blockchain investigators, compliance officers, and security researchers. It provides comprehensive analysis capabilities for tracking fund flows, identifying suspicious patterns, and performing due diligence on Solana addresses.
Forensic Visualization
- Interactive network graph visualization using D3.js
- Automatic cluster detection and pattern recognition
- Risk scoring and assessment algorithms
- Multi-format export capabilities
Transaction Analysis
- Deep network traversal up to 5 levels
- Comprehensive transaction history tracking
- Counterparty identification and profiling
- Balance change analysis
Compliance Tools
- KYT (Know Your Transaction) audit reports
- KYA (Know Your Address) documentation
- CSV exports for regulatory reporting
- Audit trail generation
Real-time Monitoring
- WebSocket-based live tracking
- Instant transaction notifications
- Continuous surveillance capabilities
- Alert system integration
The forensic visualizer creates interactive network graphs that reveal transaction patterns and relationships between addresses.
Node Representation
- Target addresses (investigation subject)
- Counterparty addresses (transaction partners)
- Cluster members (grouped by pattern)
- Size proportional to transaction activity
Edge Visualization
- Solid lines indicate bidirectional transaction flows
- Dashed lines indicate unidirectional flows
- Line thickness represents transaction volume
- Interactive exploration of transaction details
Automated identification of suspicious transaction patterns:
Mixing Patterns
- High-frequency, low-value transactions
- Multiple intermediary hops
- Potential tumbling or laundering activity
- Critical risk classification
Accumulation Patterns
- Low-frequency, high-value inflows
- Whale activity indicators
- Exchange deposit patterns
- High risk classification
Distribution Patterns
- High-frequency outbound transactions
- Airdrop or payment distribution
- Potential scam indicators
- Medium risk classification
Automated risk assessment using multi-factor analysis:
Risk Factors
- Transaction volume (weight: 30%)
- Activity frequency (weight: 20%)
- Flow imbalance (weight: 25%)
- Recent activity (weight: 15%)
- Cluster membership (weight: 10%)
Risk Classifications
- Low Risk: 0-30 (normal activity)
- Medium Risk: 31-50 (monitoring recommended)
- High Risk: 51-70 (investigation required)
- Critical Risk: 71-100 (urgent action needed)
Automatic identification and analysis of transaction clusters:
- Pattern-based grouping algorithms
- Risk level assessment per cluster
- Member address identification
- Volume and frequency analysis
Detailed transaction exploration capabilities:
- Click any edge to view all transactions
- Sortable by timestamp, amount, status
- Filterable by transaction type
- Export to CSV for further analysis
- Node.js version 16 or higher
- npm or yarn package manager
- Helius API key (free tier available)
- Clone the repository:
git clone <repository-url>
cd solana-forensic-intelligence- Install dependencies:
npm install- Configure environment:
cp .env.example .env- Edit
.envfile and add your Helius API key:
HELIUS_API_KEY=your_api_key_here
- Verify installation:
npx tsx src/scripts/trace-single-address.ts --help- Visit helius.dev
- Create a free account
- Navigate to API Keys section
- Copy your API key
- Paste into
.envfile
The free tier includes 100,000 API credits per month, sufficient for most investigative needs.
Perform rapid initial assessment (30 seconds):
npx tsx src/scripts/analyze.ts trace <ADDRESS>Generate comprehensive compliance documentation with depth analysis:
npx tsx src/scripts/analyze.ts audit <ADDRESS> 3Generate interactive graph visualization with automatic risk assessment:
npx tsx src/scripts/analyze.ts forensic <ADDRESS> 3Run all analyses (trace + audit + forensic):
npx tsx src/scripts/analyze.ts all <ADDRESS> 3Monitor address for live updates using WebSocket:
npx tsx src/scripts/monitor.ts <ADDRESS>Features:
- Real-time account balance changes
- Automatic reconnection
- Health checks (ping every 60s)
- Logs saved to
data/monitor/ - Press Ctrl+C to stop
Parameters:
<ADDRESS>: Solana address to investigate3: Analysis depth for audit/forensic (recommended: 2-5)
Output Locations:
- Trace:
data/trace/ - Audit:
data/audit/ - Forensic:
data/forensic/<ADDRESS>/ - Monitor:
data/monitor/
Purpose: All-in-one forensic analysis tool
Command:
npx tsx src/scripts/analyze.ts <COMMAND> <ADDRESS> [DEPTH]Commands:
trace- Quick address trace (30 seconds)audit- KYT/KYA audit with depth analysisforensic- Full forensic visualization with graphsall- Run all analyses
Features:
- Single script for all tasks
- Consistent output formats
- Integrated analysis pipeline
- Automatic risk scoring
- Pattern detection
- Cluster identification
Best For:
- All investigation scenarios
- Streamlined workflow
- Consistent results
Execution Time:
- Trace: ~30 seconds
- Audit (depth 3): ~2 minutes
- Forensic (depth 3): ~2 minutes
- All: ~5 minutes
Purpose: Live address monitoring via WebSocket
Command:
npx tsx src/scripts/monitor.ts <ADDRESS>Features:
- Real-time balance updates
- WebSocket connection with auto-reconnect
- Health checks (ping every 60s)
- Automatic log saving
- Graceful shutdown (Ctrl+C)
Best For:
- Live surveillance
- Instant notifications
- Ongoing monitoring
- Alert systems
Output:
- Console: Real-time updates
- File:
data/monitor/<ADDRESS>_monitor.json
Location: data/forensic_analysis/<ADDRESS>/
Files Generated:
-
visualization.html
- Interactive D3.js graph
- Click, drag, zoom functionality
- Node and edge details
- Transaction tables
-
nodes.csv
- Address information
- Risk scores
- Transaction counts
- Balance statistics
- Tags and classifications
-
edges.csv
- Transaction flows
- Volume data
- Direction indicators
- Transaction counts
-
transactions_table.csv
- Complete transaction list
- Timestamps
- Amounts
- Status indicators
- Edge associations
-
clusters.csv
- Cluster identifiers
- Member counts
- Volume statistics
- Pattern classifications
- Risk levels
-
cluster_members.csv
- Cluster membership mapping
- Address associations
-
graph.json
- Complete graph data structure
- Nodes and edges
- Metadata
- Analysis parameters
Location: data/kyt_audit/
Files Generated:
-
_depth_KYT_AUDIT_REPORT.md
- Executive summary
- Risk assessment
- Transaction analysis
- Recommendations
-
_depth_flows.csv
- All transaction flows
- Source and destination
- Amounts and timestamps
-
_depth_addresses.csv
- All analyzed addresses
- Statistics and classifications
Location: data/single_address_trace/
Files Generated:
-
_transactions.csv
- Transaction history
- Chronological order
- Complete details
-
_counterparties.csv
- Counterparty list
- Transaction counts
- Volume statistics
-
_summary.json
- Analysis summary
- Key statistics
- Metadata
Scenario: Investigating suspected fraudulent activity
Workflow:
- Run forensic visualizer with depth 3
- Identify high-risk nodes and clusters
- Analyze mixing patterns
- Track fund destinations
- Export evidence for reporting
Tools: Forensic Visualizer, KYT Audit
Scenario: KYC/AML due diligence for exchange onboarding
Workflow:
- Generate KYT audit report
- Create forensic visualization
- Review risk scores and patterns
- Document findings
- Archive for audit trail
Tools: KYT Audit, Forensic Visualizer
Scenario: Tracking stolen or misappropriated funds
Workflow:
- Start with victim address
- Run deep analysis (depth 5)
- Identify mixing attempts
- Track to final destinations
- Document chain of custody
Tools: Forensic Visualizer (deep analysis)
Scenario: Vetting potential business partner
Workflow:
- Quick initial check
- Generate visualization
- Review transaction history
- Assess risk level
- Present findings to stakeholders
Tools: Address Tracer, Forensic Visualizer
Scenario: Monitoring deposit addresses for suspicious activity
Workflow:
- Set up real-time monitoring
- Receive instant alerts
- Investigate flagged transactions
- Generate compliance reports
- Maintain audit logs
Tools: Address Monitor, KYT Audit
Scenario: Analyzing token airdrop or distribution patterns
Workflow:
- Identify source address
- Run forensic analysis
- Detect distribution clusters
- Verify recipient patterns
- Document distribution metrics
Tools: Forensic Visualizer, Address Tracer
solana-forensic-intelligence/
├── src/
│ ├── scripts/
│ │ ├── analyze.ts # Unified analysis tool (all-in-one)
│ │ └── monitor.ts # Real-time WebSocket monitor
│ ├── services/
│ │ ├── helius.service.ts # Helius API integration
│ │ └── websocket.service.ts # WebSocket service
│ └── types/
│ └── index.ts # TypeScript definitions
├── data/
│ ├── trace/ # Quick trace outputs
│ ├── audit/ # Audit reports
│ ├── forensic/ # Forensic visualizations
│ └── monitor/ # Real-time monitoring logs
├── docs/
│ ├── FORENSIC_VISUALIZER.md # Visualizer guide
│ ├── QUICK_START_FORENSIC.md # Quick start
│ ├── VISUALIZATION_EXAMPLES.md # Examples
│ ├── TOOL_COMPARISON.md # Tool comparison
│ ├── FEATURES_OVERVIEW.md # Features
│ ├── PROJECT_STRUCTURE.md # Structure
│ ├── API_REFERENCE.md # API docs
│ └── CONFIGURATION.md # Configuration
├── .env.example # Environment template
├── .gitignore # Git ignore rules
├── package.json # Dependencies
├── tsconfig.json # TypeScript config
├── README.md # This file
├── CONTRIBUTING.md # Contribution guide
├── LICENSE # MIT License
└── icon_header_white.png # Project logo
Create a .env file in the project root:
# Helius API Configuration
HELIUS_API_KEY=your_helius_api_key_here
# Optional: Network Selection
SOLANA_NETWORK=mainnet-beta # or devnet, testnet
# Optional: Rate Limiting
API_RATE_LIMIT_MS=100
# Optional: Output Directory
OUTPUT_DIR=./dataDepth Levels:
-
Depth 1: Direct counterparties only
- Execution time: ~10 seconds
- Addresses analyzed: 5-10
- Use case: Quick check
-
Depth 2: Two-hop analysis
- Execution time: ~30 seconds
- Addresses analyzed: 10-20
- Use case: Initial investigation
-
Depth 3: Three-hop analysis (recommended)
- Execution time: ~2 minutes
- Addresses analyzed: 30-50
- Use case: Standard investigation
-
Depth 4: Four-hop analysis
- Execution time: ~5 minutes
- Addresses analyzed: 50-80
- Use case: Detailed investigation
-
Depth 5: Five-hop analysis (comprehensive)
- Execution time: ~10 minutes
- Addresses analyzed: 100+
- Use case: Deep forensic analysis
Estimated Credits per Analysis:
- Address Tracer: 100-200 credits
- KYT Audit (depth 3): 300-500 credits
- Forensic Visualizer (depth 3): 300-500 credits
- Real-time Monitor: Variable (activity-dependent)
Free Tier: 100,000 credits per month
For Large Investigations:
- Start with depth 2-3 for initial assessment
- Use depth 5 only when necessary
- Close unnecessary applications
- Monitor API credit usage
- Process in batches if needed
Rate Limiting:
- Automatic 100ms delay between API calls
- Respects Helius API rate limits
- Graceful error handling
- Automatic retry logic
Memory Management:
- Efficient data structures
- Streaming for large datasets
- Garbage collection optimization
- Resource cleanup
System Requirements:
- CPU: 2+ cores recommended
- RAM: 4GB minimum, 8GB recommended
- Storage: 1GB free space
- Network: Stable internet connection
Performance Metrics:
| Tool | Depth | Time | Addresses | Memory |
|---|---|---|---|---|
| Tracer | N/A | 30s | 10-20 | 100MB |
| Visualizer | 2 | 30s | 10-20 | 200MB |
| Visualizer | 3 | 2m | 30-50 | 300MB |
| Visualizer | 5 | 10m | 100+ | 500MB |
| KYT Audit | 3 | 2m | 30-50 | 250MB |
| Monitor | N/A | Real-time | N/A | 50MB |
This software is provided for informational and investigative purposes only. Users are responsible for ensuring compliance with all applicable laws and regulations in their jurisdiction.
-
No Warranty: This software is provided "as is" without warranty of any kind, express or implied.
-
Verification Required: Always verify findings with multiple independent sources before taking action.
-
Not Legal Advice: This tool does not provide legal, financial, or investment advice.
-
Compliance Responsibility: Users are responsible for ensuring their use complies with applicable laws, including but not limited to:
- Data protection regulations (GDPR, CCPA, etc.)
- Financial regulations (AML, KYC, etc.)
- Privacy laws
- Computer fraud and abuse laws
-
Prohibited Uses: Do not use this software for:
- Harassment or stalking
- Illegal surveillance
- Unauthorized access to systems
- Market manipulation
- Any illegal activities
-
Data Accuracy: Blockchain data is provided by third-party APIs. Accuracy cannot be guaranteed.
-
Privacy: Respect the privacy rights of individuals. Use responsibly and ethically.
The developers and contributors of this software shall not be liable for any damages, losses, or legal consequences arising from the use or misuse of this software.
Documentation:
- Check the
docs/directory for comprehensive guides - Review examples in the
data/directory - Read the FAQ section below
Community:
- GitHub Issues: Report bugs and request features
- GitHub Discussions: Ask questions and share insights
- Solana Developer Forums: Community support
Professional Support:
- For enterprise support inquiries, contact via GitHub
Q: What is the cost? A: The software is free and open-source. You only need a free Helius API key.
Q: What networks are supported? A: Solana mainnet-beta, devnet, and testnet.
Q: Can I analyze multiple addresses? A: Yes, run the tool multiple times or modify scripts for batch processing.
Q: How accurate is the risk scoring? A: Risk scores are algorithmic assessments. Always verify with additional research.
Q: Can I export to other formats? A: Yes, outputs include CSV, JSON, HTML, and Gephi-compatible formats.
Q: Is real-time monitoring truly real-time? A: Yes, using WebSocket connections with minimal latency.
Q: Can I customize the analysis? A: Yes, the codebase is open-source and modifiable.
Q: What about privacy? A: All blockchain data is public. This tool only accesses publicly available information.
When reporting issues, please include:
- Tool and command used
- Error messages (full stack trace)
- System information (OS, Node version)
- Steps to reproduce
- Expected vs actual behavior
We welcome feature requests. Please:
- Check existing issues first
- Describe the use case
- Explain the expected behavior
- Provide examples if possible
This project is licensed under the MIT License. See the LICENSE file for details.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Helius: Solana RPC and API services
- D3.js: Data visualization library
- TypeScript: Type-safe programming language
- Node.js: JavaScript runtime
- Solana: Blockchain platform
Thank you to all contributors who have helped improve this project.
If you use this software in your research or work, please cite:
Solana Forensic Intelligence Tools
https://github.com/agentic-reserve/solana-forensic-intelligence.git
Completed Features:
- Interactive graph visualization
- Pattern detection algorithms
- Risk scoring system
- Multiple export formats
- Real-time monitoring
- Comprehensive documentation
Version 1.1.0:
- Token flow tracking
- NFT transaction analysis
- Enhanced cluster algorithms
- Performance optimizations
Version 1.2.0:
- Machine learning risk models
- Automated alert system
- API endpoint for integration
- Dashboard interface
Version 2.0.0:
- Multi-chain support
- Advanced analytics
- Enterprise features
- Cloud deployment options
For questions, suggestions, or collaboration inquiries:
- GitHub: Repository Issues
- Email: Available upon request
- Website: Documentation site (coming soon)
Professional blockchain forensics for the Solana ecosystem
Last Updated: 2024
