Skip to content

Enterprise-grade Ethereum blockchain analysis platform for transaction debugging, gas optimization, and smart contract forensics. Built with React 19 + TypeScript, providing deep EVM tracing, real-time monitoring, and intuitive visualizations for developers, auditors, and researchers.

License

Notifications You must be signed in to change notification settings

exyreams/arguschain

Repository files navigation

Arguschain

Enterprise-grade Ethereum blockchain analysis platform for transaction debugging, gas optimization, and smart contract forensics.

Project Banner

React TypeScript Vite ethers.js Tailwind CSS License

Arguschain provides deep blockchain analysis capabilities with 12+ advanced analysis methods, real-time monitoring, and intuitive visualizations. Built for developers, auditors, and researchers who need comprehensive transaction insights.

✨ Key Features

Advanced Analysis Methods

  • Transaction Tracing - Complete call hierarchies with gas analysis
  • Bytecode Forensics - Disassembly and opcode-level debugging
  • Event Log Analysis - Automatic decoding and filtering
  • Storage Inspection - Contract state analysis and diff visualization
  • Debug Block Tracing - Block-level execution analysis
  • Transaction Replay - Historical transaction re-execution
  • Mempool Monitoring - Real-time pending transaction analysis
  • Transaction Simulation - Pre-execution testing and optimization

Enterprise Features

  • Multi-network support (Mainnet, Sepolia, custom RPCs)
  • Export capabilities (Image, JSON, CSV)
  • Performance analytics and optimization suggestions
  • Bookmark and history management
  • Real-time data streaming
  • Mobile-responsive design

Built for Reliability

  • WCAG 2.1 AA accessibility compliance
  • Comprehensive error handling with retry mechanisms
  • Multi-layer caching (memory β†’ localStorage β†’ IndexedDB)
  • Progressive loading for large datasets
  • Offline-capable architecture

Quick Start

Prerequisites

  • Node.js 18+ or Bun (Recommended)
  • Ethereum RPC endpoint (Google Blockchain RPC, Infura, Alchemy, or local node)

Configuration

Environment Variables

# Ethereum RPC Endpoints
VITE_MAINNET_RPC_URL=your_mainnet_rpc_url
VITE_SEPOLIA_RPC_URL=your_sepolia_rpc_url

# Supabase Configuration (REQUIRED)
# Get these from: Supabase Dashboard β†’ Connect β†’ App Frameworks β†’ React + Vite
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

# Auth Redirect URLs (for OAuth REQUIRED)
VITE_AUTH_REDIRECT_URL=http://localhost:5173/auth/callback

Installation

# Clone the repository
git clone https://github.com/exyreams/arguschain.git
cd arguschain

# Install dependencies
bun install
# or
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your RPC endpoints and configuration

Development

# Start development server
bun run dev
# or
npm run dev

# Build for production
bun run build
#or
npm run build

# Run linting
bun run lint
#or
npm run lint

Visit http://localhost:5173 to access the application.

Arguschain Demo

Experience Arguschain's comprehensive blockchain analysis capabilities in action.

Arguschain Demo

Architecture

Tech Stack

  • Frontend: React 19.1.0 + TypeScript 5.8.3
  • Build Tool: Vite 7.0.6 with SWC
  • Styling: Tailwind CSS 3.4.17 + shadcn/ui
  • State Management: TanStack React Query 5.83.0
  • Blockchain: ethers.js 6.15.0
  • Performance: React Virtual for large datasets

Design Principles

  • Performance First: Virtualization, caching, and lazy loading
  • Accessibility: WCAG 2.1 AA compliance with full keyboard navigation
  • Type Safety: 100% TypeScript coverage with strict mode
  • Error Resilience: Comprehensive error boundaries and retry mechanisms
πŸ“ Project Structure
src/
β”œβ”€β”€ App.tsx                 # Root application component
β”œβ”€β”€ main.tsx                # Entry point for the React application
β”œβ”€β”€ index.css               # Global styles
β”œβ”€β”€ vite-env.d.ts           # Vite TypeScript declarations
β”œβ”€β”€ assets/                 # Static assets (logos, icons, loaders)
β”œβ”€β”€ components/             # Reusable UI components
β”‚   β”œβ”€β”€ auth/               # Authentication components (SignIn, SignUp, AuthCard, etc.)
β”‚   β”œβ”€β”€ blocktrace/         # Block trace visualization components
β”‚   β”œβ”€β”€ bytecode/           # Bytecode analysis and disassembly UI
β”‚   β”œβ”€β”€ dashboard/          # Dashboard and analytics components
β”‚   β”œβ”€β”€ debugblock/         # Debug block execution components
β”‚   β”œβ”€β”€ debugtrace/         # Debug trace visualization
β”‚   β”œβ”€β”€ eventlogs/          # Event log parsing and display
β”‚   β”œβ”€β”€ global/             # Global components (modals, toasts, etc.)
β”‚   β”œβ”€β”€ landing/            # Landing page components
β”‚   β”œβ”€β”€ layout/             # Layout and navigation components
β”‚   β”œβ”€β”€ mempool/            # Mempool monitoring UI
β”‚   β”œβ”€β”€ modals/             # Modal dialog components
β”‚   β”œβ”€β”€ replaytransactions/ # Transaction replay interface
β”‚   β”œβ”€β”€ status/             # Status indicators and loaders
β”‚   β”œβ”€β”€ storagerange/       # Storage range analysis
β”‚   β”œβ”€β”€ tracetransaction/   # Transaction tracing components
β”‚   β”œβ”€β”€ transactionsimulation/ # Simulation UI
β”‚   └── ui/                 # Base UI primitives (buttons, cards, etc.)
β”œβ”€β”€ hooks/                  # Custom React hooks
β”‚   β”œβ”€β”€ auth/               # Authentication hooks
β”‚   β”œβ”€β”€ blockchain/         # Blockchain interaction hooks
β”‚   β”œβ”€β”€ blocktrace/         # Block trace hooks
β”‚   β”œβ”€β”€ bookmarks/          # Bookmark management
β”‚   β”œβ”€β”€ bytecode/           # Bytecode analysis hooks
β”‚   β”œβ”€β”€ dashboard/          # Dashboard data hooks
β”‚   β”œβ”€β”€ debugblock/         # Debug block hooks
β”‚   β”œβ”€β”€ debugtrace/         # Debug trace hooks
β”‚   β”œβ”€β”€ eventlogs/          # Event log hooks
β”‚   β”œβ”€β”€ global/             # Global state hooks
β”‚   β”œβ”€β”€ mempool/            # Mempool hooks
β”‚   β”œβ”€β”€ replaytransactions/ # Replay hooks
β”‚   β”œβ”€β”€ shared/             # Shared utility hooks
β”‚   β”œβ”€β”€ storagerange/       # Storage hooks
β”‚   β”œβ”€β”€ tracetransaction/   # Trace transaction hooks
β”‚   └── transactionsimulation/ # Simulation hooks
β”œβ”€β”€ lib/                    # Core library and utilities
β”‚   β”œβ”€β”€ blockchainService.ts # Blockchain RPC and data services
β”‚   β”œβ”€β”€ blockIdentifierUtils.ts # Block identification helpers
β”‚   β”œβ”€β”€ config.ts           # Application configuration
β”‚   β”œβ”€β”€ queryConfig.ts      # API query configurations
β”‚   β”œβ”€β”€ structLogTracer.ts  # Struct log tracing utilities
β”‚   β”œβ”€β”€ toast-config.ts     # Toast notification setup
β”‚   β”œβ”€β”€ traceCache.ts       # Trace result caching
β”‚   β”œβ”€β”€ transactionTracer.ts # Transaction tracing logic
β”‚   β”œβ”€β”€ unifiedAnalyzer.ts  # Unified analysis engine
β”‚   β”œβ”€β”€ utils.ts            # General utility functions
β”‚   └── [feature]/          # Feature-specific libraries (analytics, auth, export, etc.)
└── pages/                  # Page-level components
    β”œβ”€β”€ AnalysisHistoryPage.tsx # Analysis history view
    β”œβ”€β”€ AuthCallback.tsx    # OAuth/auth callback
    β”œβ”€β”€ BlockTraceAnalyzer.tsx # Block trace analyzer page
    β”œβ”€β”€ BytecodeAnalysis.tsx # Bytecode analysis page
    β”œβ”€β”€ Dashboard.tsx       # Main dashboard
    β”œβ”€β”€ DebugBlockTrace.tsx # Debug block trace
    β”œβ”€β”€ DebugTrace.tsx      # Debug trace page
    β”œβ”€β”€ EventLogs.tsx       # Event logs page
    β”œβ”€β”€ Landing.tsx         # Landing/home page
    β”œβ”€β”€ NetworkMonitor.tsx  # Network monitoring
    β”œβ”€β”€ NotFound.tsx        # 404 page
    β”œβ”€β”€ PerformanceDashboardPage.tsx # Performance dashboard
    β”œβ”€β”€ ReplayTransactions.tsx # Replay transactions page
    β”œβ”€β”€ SignIn.tsx          # Sign-in page
    β”œβ”€β”€ SignUp.tsx          # Sign-up page
    β”œβ”€β”€ StorageAnalysis.tsx # Storage analysis
    β”œβ”€β”€ ToastTest.tsx       # Toast testing (dev utility)
    β”œβ”€β”€ TraceTransaction.tsx # Trace transaction page
    β”œβ”€β”€ TransactionPool.tsx # Transaction pool page
    β”œβ”€β”€ TransactionSimulation.tsx # Simulation page
    └── TxStatus.tsx        # Transaction status page

public/                     # Static public assets
β”œβ”€β”€ package.json            # Dependencies and scripts
β”œβ”€β”€ bun.lock                # Bun lockfile
β”œβ”€β”€ tailwind.config.ts      # Tailwind configuration
β”œβ”€β”€ postcss.config.js       # PostCSS config
β”œβ”€β”€ eslint.config.js        # ESLint configuration
β”œβ”€β”€ tsconfig.json           # TypeScript config (root)
β”œβ”€β”€ tsconfig.app.json       # App-specific TS config
β”œβ”€β”€ tsconfig.node.json      # Node-specific TS config
β”œβ”€β”€ vite.config.ts          # Vite build config
└── [docs]/                 # Documentation files (Hackathon.md, ODL.md, Questions.md, Story.md)

Analysis Methods & RPC Coverage

Arguschain implements comprehensive analysis workflows using advanced Ethereum RPC methods, optimized for deep blockchain intelligence:

High-Cost RPC Methods Supported

  • debug_traceTransaction (50x multiplier) - Complete EVM execution tracing
  • trace_replayTransaction (100x multiplier) - State diffs for forensic auditing
  • eth_getLogs (50x multiplier) - High-efficiency event filtering
  • debug_storageRangeAt (50x multiplier) - Direct storage inspection
  • trace_block (75x multiplier) - Block-level execution flows
  • debug_traceBlockByNumber (75x multiplier) - Detailed block tracing
  • trace_call (25x multiplier) - Transaction simulation and gas prediction
  • txpool_status (10x multiplier) - Mempool health monitoring

Analysis Capabilities by Method

πŸ” Transaction-Level Analysis

  • Internal Call Mapping: Complete call hierarchies with gas breakdown
  • Event Emission Tracking: Automatic event decoding and filtering
  • Revert Debugging: Detailed failure analysis with stack traces
  • Gas Optimization: Step-by-step gas consumption analysis

Block-Level Intelligence

  • Transaction Context: How transactions interact within blocks
  • MEV Detection: Identify arbitrage and sandwich attacks
  • Gas Pattern Analysis: Block-level gas usage patterns
  • Network Activity: Comprehensive block activity overview

State & Simulation

  • Precise State Tracking: Balance and storage change monitoring
  • "What-If" Scenarios: Pre-execution transaction testing
  • Historical Replay: Re-execute past transactions with full context
  • Storage Inspection: Raw contract storage analysis

Network Monitoring

  • Mempool Analysis: Pending transaction insights
  • Congestion Assessment: Network health and confirmation times
  • Gas Price Intelligence: Dynamic fee recommendations

Use Cases

For Developers

  • Debug failed transactions with complete call traces
  • Optimize gas usage with detailed execution analysis
  • Test contract interactions before deployment
  • Monitor transaction pool for MEV opportunities

For Security Auditors

  • Forensic analysis of suspicious transactions
  • Contract state inspection and vulnerability assessment
  • Historical transaction replay for incident investigation
  • Comparative analysis for attack pattern detection

For DeFi Teams

  • Monitor protocol interactions and user flows
  • Analyze arbitrage and liquidation transactions
  • Track cross-protocol transaction patterns
  • Performance monitoring and optimization

For Researchers

  • Large-scale transaction pattern analysis
  • Network behavior studies and analytics
  • Protocol adoption and usage metrics
  • Historical blockchain data exploration

Why Arguschain Excels

Enterprise-Grade Infrastructure

Unlike basic block explorers, Arguschain provides access to computationally expensive RPC methods that are typically cost-prohibitive:

  • Deep EVM Tracing: Full execution paths with opcode-level detail
  • State Diff Analysis: Precise tracking of all state changes
  • Advanced Simulation: Test transactions before execution
  • Forensic Capabilities: Investigate complex DeFi interactions

Performance & Scalability

  • Virtualized Rendering: Handle datasets >10,000 items smoothly
  • Multi-layer Caching: Memory β†’ localStorage β†’ IndexedDB optimization
  • Progressive Loading: Skeleton UI for operations >200ms
  • Error Resilience: Exponential backoff retry with graceful degradation

Developer Experience

  • TypeScript First: 100% type coverage with strict mode
  • Component Architecture: Modular, reusable UI components
  • Real-time Updates: Live data streaming with React Query
  • Export Capabilities: JSON/CSV export for all analysis views

Accessibility & Compliance

  • WCAG 2.1 AA: Full accessibility compliance
  • Keyboard Navigation: Complete keyboard-only operation
  • Screen Reader Support: Semantic HTML with proper ARIA labels
  • Mobile Responsive: Touch-friendly mobile interface

🀝 Contributing

We welcome contributions! Here's how to get started:

Development Setup

  1. Fork and clone the repository
  2. Install dependencies: npm install or bun install
  3. Set up environment: Copy .env.example to .env and configure
  4. Start development: npm run dev

Code Standards

  • TypeScript: Strict mode enabled, no any types
  • Components: PascalCase with proper prop interfaces
  • Hooks: kebab-case with use- prefix
  • Imports: Use @/* aliases, follow import order guidelines
  • Testing: Write tests for new features and bug fixes

Pull Request Process

  1. Create a feature branch: git checkout -b feature/your-feature-name
  2. Follow our coding standards and architecture patterns
  3. Add tests for new functionality
  4. Update documentation as needed
  5. Submit a pull request with a clear description

Feature Development

Follow our structured approach for new features:

  • Define TypeScript interfaces first
  • Implement service layer with React Query
  • Build components with error handling
  • Add proper accessibility and performance optimizations

πŸ“ License

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


Built with ❀️ by exyreams

About

Enterprise-grade Ethereum blockchain analysis platform for transaction debugging, gas optimization, and smart contract forensics. Built with React 19 + TypeScript, providing deep EVM tracing, real-time monitoring, and intuitive visualizations for developers, auditors, and researchers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages