Skip to content

Ge0frey/chainprobe

Repository files navigation

ChainProbe

ChainProbe Logo

Advanced Blockchain Forensic Analysis Platform for Solana

Investigate transactions, analyze wallet behavior, and detect suspicious patterns on the Solana blockchain

Website Demo Video Write-up

React TypeScript Solana Tailwind CSS Node.js


Overview

ChainProbe is a comprehensive blockchain forensic analysis platform specifically designed for the Solana ecosystem. It empowers users with advanced tools to investigate transaction flows, analyze wallet behavior patterns, identify suspicious activities, and perform comprehensive security audits on tokens and smart contracts.

Target Audience

  • Blockchain Investigators - Track illicit funds and investigate fraudulent activities
  • Security Researchers - Analyze suspicious patterns and wallet behaviors
  • DeFi Teams - Conduct thorough due diligence on protocols and tokens
  • Token Projects - Verify smart contract security and tokenomics
  • Individual Users - Check wallet security and assess token safety

Features

Core Analysis Tools

Feature Description Key Benefits
Transaction Flow Visualization Interactive 3D graph visualization of fund movements β€’ Real-time transaction mapping
β€’ Identify money laundering patterns
β€’ Trace fund origins and destinations
Wallet Analysis Comprehensive wallet behavior and risk assessment β€’ Transaction history analysis
β€’ Risk scoring with ML algorithms
β€’ Activity pattern detection
Transaction Clustering Group related transactions to reveal hidden networks β€’ Discover wallet clusters
β€’ Identify coordinated activities
β€’ Network analysis visualization
Pattern Analysis Detect suspicious patterns and anomalies β€’ Wash trading detection
β€’ Circular transaction identification
β€’ Automated risk flagging
Entity Labels Identify and categorize blockchain entities β€’ Exchange identification
β€’ Protocol classification
β€’ Suspicious actor flagging

Token Security Suite

Tool Purpose Integration
Token Analyzer Comprehensive token security assessment RugCheck
Trending Tokens Monitor popular tokens with real-time risk scoring Community
New Tokens Track and assess newly created tokens Real_time
Verified Tokens Directory of verified secure tokens Jupiter

Advanced Security Tools

  • Smart Contract Scanner - Automated vulnerability detection and security analysis
  • Bridge Monitor [Beta] - Cross-chain bridge transaction monitoring with risk assessment
  • Risk Assessment Engine - Powered by Webacy for comprehensive threat analysis

Technology Stack

Frontend Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Framework     β”‚   Styling       β”‚   State Mgmt    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ React 18        β”‚ Tailwind CSS    β”‚ React Query     β”‚
β”‚ TypeScript      β”‚ Framer Motion   β”‚ Context API     β”‚
β”‚ Vite            β”‚ Custom Themes   β”‚ Local Storage   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Visualization & UI

  • 3D Graphs: Force Graph React, Three.js
  • Charts: Chart.js with date adapters
  • Flow Diagrams: ReactFlow for network visualization
  • Animations: Framer Motion for smooth interactions
  • Icons: React Icons (Remix Icon set)

Backend & APIs

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Blockchain    β”‚   Security      β”‚   Data Sources  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Solana Web3.js  β”‚ Webacy API      β”‚ Helius RPC      β”‚
β”‚ Wallet Adapter  β”‚ RugCheck API    β”‚ Dune Analytics  β”‚
β”‚ RPC Endpoints   β”‚ Jupiter API     β”‚ Solscan API     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Development & Deployment

  • Build Tool: Vite with TypeScript
  • Deployment: Vercel (Frontend), Render (Backend)
  • Code Quality: ESLint, TypeScript strict mode
  • Version Control: Git with conventional commits

Installation & Setup

Prerequisites

Node.js npm Git

Quick Start

  1. Clone the repository

    git clone https://github.com/ge0frey/chainprobe.git
    cd chainprobe
  2. Install dependencies

    # Frontend dependencies
    npm install
    
    # Backend dependencies (if running locally)
    cd backend && npm install
  3. Environment Configuration

    Frontend (.env):

    # Backend API URL
    VITE_API_BASE_URL=http://localhost:3001
    
    # Solana Network Configuration
    VITE_SOLANA_NETWORK=mainnet-beta

    Backend (backend/.env):

    # Server Configuration
    PORT=3001
    FRONTEND_URL=http://localhost:5173
    
    # API Keys (Required for full functionality)
    HELIUS_API_KEY=your_helius_api_key_here
    DD_API_KEY=your_webacy_dd_api_key_here
    DUNE_API_KEY=your_dune_api_key_here
  4. Start the application

    # Start frontend (from root directory)
    npm run dev
    
    # Start backend (from backend directory - new terminal)
    cd backend && npm run dev
  5. Access the application

    • Frontend: http://localhost:5173
    • Backend API: http://localhost:3001

API Keys Setup

Service Required Purpose Get API Key
Helius Yes Solana RPC & enhanced transactions helius.xyz
Webacy Yes Risk assessment & security analysis webacy.com
Dune Optional Token balance data dune.com

Usage Guide

πŸ” Transaction Flow Analysis

Visualize fund movements in 3D interactive graphs

graph LR
    A[Enter Wallet Address] --> B[Generate Flow Graph]
    B --> C[Interactive 3D Visualization]
    C --> D[Node Details & Filters]
    D --> E[Risk Assessment]
Loading

Key Features:

  • Real-time transaction mapping
  • Suspicious pattern highlighting
  • Time-based filtering
  • Export capabilities

πŸ’Ό Wallet Risk Analysis

Comprehensive wallet behavior assessment

Analysis Type Data Points Risk Factors
Transaction History Volume, frequency, patterns Unusual activity spikes
Connected Entities Known exchanges, protocols Suspicious interactions
Token Holdings Portfolio diversity, values High-risk token exposure
Activity Patterns Time-based behavior Bot-like patterns

πŸ›‘οΈ Token Security Analysis

Multi-layered token security assessment

πŸ“Š Token Analysis Pipeline
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Mint      β”‚ => β”‚   RugCheck  β”‚ => β”‚   Risk      β”‚
β”‚   Address   β”‚    β”‚   Analysis  β”‚    β”‚   Report    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                   β”‚                   β”‚
       v                   v                   v
 Verify Address     Contract Audit      Score & Flags

Assessment Categories:

  • Contract vulnerabilities
  • Liquidity analysis
  • Holder distribution
  • Creator background
  • Market manipulation risks

Architecture Overview

Component Structure

chainprobe/
β”œβ”€β”€ 🎯 src/components/           # React components
β”‚   β”œβ”€β”€ πŸ“Š Dashboard.tsx         # Main overview dashboard
β”‚   β”œβ”€β”€ πŸ”„ TransactionFlow.tsx   # 3D transaction visualization
β”‚   β”œβ”€β”€ πŸ’Ό WalletAnalysis.tsx    # Wallet behavior analysis
β”‚   β”œβ”€β”€ πŸ›‘οΈ TokenSecurity/        # Token analysis suite
β”‚   β”œβ”€β”€ πŸ” PatternAnalysis.tsx   # Suspicious pattern detection
β”‚   └── 🌐 ui/                   # Reusable UI components
β”œβ”€β”€ βš™οΈ src/services/             # API integrations
β”œβ”€β”€ πŸ–₯️ backend/                  # Express.js API proxy
└── πŸ“ public/                   # Static assets

Data Flow Architecture

graph TB
    A[ChainProbe Frontend] --> B[Backend API Proxy]
    B --> C[Helius RPC]
    B --> D[Webacy API]
    B --> E[RugCheck API]
    B --> F[Dune Analytics]
    
    C --> G[Solana Blockchain]
    D --> H[Risk Database]
    E --> I[Token Registry]
    F --> J[Analytics DB]
Loading

API Integration Matrix

Service Purpose Rate Limits Caching
Helius Solana RPC & enhanced transactions 5000 req/min Redis, 30s
Webacy Risk assessment & sanctions 1000 req/min Local, 5min
RugCheck Token security analysis 500 req/min Redis, 1hr
Dune Token balance analytics 100 req/min Local, 15min

Security Features

  • Rate Limiting: Implemented on all API endpoints
  • Request Validation: Input sanitization and validation
  • Error Handling: Graceful fallbacks for API failures
  • CORS Protection: Configured for production deployment

Contributing

We welcome contributions from the community! Here's how you can help improve ChainProbe.

Development Guidelines

Conventional Commits TypeScript ESLint

Getting Started

  1. Fork the repository and clone your fork
  2. Create a feature branch from main
    git checkout -b feature/your-feature-name
  3. Install dependencies and set up your environment
  4. Make your changes following our coding standards
  5. Test your changes thoroughly
  6. Submit a pull request with a clear description

Code Standards

  • TypeScript: All new code must be written in TypeScript
  • Conventional Commits: Use conventional commit messages
  • Component Structure: Follow established patterns in /src/components/
  • API Integration: Add new services to /src/services/
  • Error Handling: Implement proper error boundaries and fallbacks

Areas for Contribution

Area Difficulty Description
UI/UX Improvements 🟒 Beginner Enhance existing components and layouts
API Integrations 🟑 Intermediate Add new blockchain data sources
Security Features πŸ”΄ Advanced Implement advanced risk detection algorithms
Performance 🟑 Intermediate Optimize data processing and visualization
Documentation 🟒 Beginner Improve guides and API documentation

Deployment

Production Deployment

Frontend (Vercel):

# Automatic deployment from main branch
# Environment variables configured in Vercel dashboard

Backend (Render):

# Automatic deployment from main branch
# Environment variables configured in Render dashboard

Environment Variables

Production Frontend:

VITE_API_BASE_URL=https://chainprobe-backend.onrender.com
VITE_SOLANA_NETWORK=mainnet-beta

Production Backend:

NODE_ENV=production
FRONTEND_URL=https://chainprobe.vercel.app
# API keys configured securely

Performance Considerations

  • Caching Strategy: Redis for API responses, browser cache for static assets
  • Rate Limiting: Exponential backoff for API requests
  • Code Splitting: Dynamic imports for heavy visualization components
  • Bundle Optimization: Tree shaking and chunk splitting with Vite

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

APIs & Services

  • Helius - Enhanced Solana RPC and transaction data
  • Webacy - Web3 security and risk assessment
  • RugCheck - Token security analysis
  • Dune Analytics - Blockchain analytics and data

Technology Partners

  • Solana - High-performance blockchain platform
  • Vercel - Frontend deployment and hosting
  • Render - Backend API hosting

Built for the Solana ecosystem
Empowering blockchain security and transparency

GitHub stars Twitter Follow

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published