Scope Blockchain Analysis
A production-grade command-line tool for blockchain data analysis, portfolio tracking, transaction investigation, and compliance-grade risk assessment.
Features
- Address Analysis: Query balances (with USD valuation), transaction history, and token holdings for blockchain addresses
- Transaction Analysis: Look up and decode blockchain transactions across all supported chains
- Token Crawling: Crawl DEX data for any token -- price, volume, liquidity, holder analysis, and risk scoring with markdown report generation
- Live Monitoring: Real-time TUI dashboard with price/volume/candlestick charts, buy/sell gauges, and activity logs
- Portfolio Management: Track multiple addresses across chains with labels, tags, and aggregated balance views
- Compliance & Risk Assessment: Risk scoring, transaction pattern detection, taint analysis, and compliance reporting
- Interactive Mode: REPL with preserved context between commands for faster workflow
- USD Valuation: Native token balances enriched with real-time USD prices via DexScreener
- Multi-Chain Support:
- EVM chains: Ethereum, Polygon, Arbitrum, Optimism, Base, BSC, Aegis
- Non-EVM chains: Solana, Tron
Installation
# Clone the repository
# Build and install
Quick Start
# Analyze an Ethereum address (auto-detects chain from address format)
# Include transaction history and token balances
# Analyze addresses on other chains (auto-detected or explicit)
# Look up a transaction
# Risk assessment for compliance
# Pattern detection
# Token crawling with report generation
# Live monitor with real-time dashboard
# Interactive mode
Compliance Features
Scope includes enterprise-grade compliance and risk analysis:
Risk Assessment
# Basic risk score
# Detailed breakdown with evidence
# Export for compliance records
Pattern Detection
# Detect structuring, layering, velocity anomalies
# Time-range analysis
Transaction Tracing
# Trace fund flow through multiple hops
Note: Set ETHERSCAN_API_KEY environment variable for full compliance analysis. Without it, basic scoring is used.
Interactive Mode
Launch a REPL where context persists between commands:
# Uses solana chain automatically
Configuration
Create ~/.config/scope/config.yaml:
chains:
ethereum_rpc: "https://mainnet.infura.io/v3/YOUR_KEY"
solana_rpc: "https://api.mainnet-beta.solana.com"
api_keys:
etherscan: "YOUR_ETHERSCAN_KEY"
solscan: "YOUR_SOLSCAN_KEY"
output:
format: table
color: true
Environment Variables
ETHERSCAN_API_KEY- Required for compliance featuresSCOPE_CONFIG- Path to custom config fileRUST_LOG- Log level override
Development
# Run tests
# Format code
# Run lints
# Build release
Or use just:
Supported Chains
| Chain | Type | Address Format | Explorer |
|---|---|---|---|
| Ethereum | EVM | 0x... | Etherscan |
| Polygon | EVM | 0x... | Polygonscan |
| Arbitrum | EVM | 0x... | Arbiscan |
| Optimism | EVM | 0x... | Optimistic Etherscan |
| Base | EVM | 0x... | Basescan |
| BSC | EVM | 0x... | BscScan |
| Aegis | EVM | 0x... | JSON-RPC |
| Solana | Non-EVM | Base58 | Solscan |
| Tron | Non-EVM | T... | Tronscan |
CI/CD
GitHub Actions workflow runs:
- Check - Fast compilation
- Format - Code style
- Clippy - Linting
- Test - Unit and integration tests
- Docs - Documentation build
- Build - Release binaries (Linux, macOS)
- Security - Dependency audit
License
MIT License - see LICENSE for details.
Built with Rust. Designed for analysts, compliance officers, and blockchain researchers.