GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BartKupc/ChainExplorer

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.venv
.venv
 
 
__pycache__
__pycache__
 
 
core
core
 
 
instance
instance
 
 
models
models
 
 
static
static
 
 
templates
templates
 
 
utils
utils
 
 
.env
.env
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.me
README.me
 
 
__init__.py
__init__.py
 
 
app.py
app.py
 
 
chains.yaml
chains.yaml
 
 
clean_db.sh
clean_db.sh
 
 
config.py
config.py
 
 
requirements.txt
requirements.txt
 
 
restart.sh
restart.sh
 
 
stop.sh
stop.sh
 
 
tests.py
tests.py
 
 

Repository files navigation

šŸš€ CronoExplorer

A powerful blockchain explorer for Ethereum-compatible chains with intelligent transaction and contract classification.

CronoExplorer provides real-time blockchain analysis with advanced transaction classification, contract detection, and user-friendly web interface. It automatically identifies ERC-20, ERC-721, ERC-1155, and T-REX (ERC-3643) contracts and transactions.

✨ Features

  • šŸ” Smart Transaction Classification: Automatically identifies token transfers, contract interactions, and deployments
  • šŸ¦– T-REX Protocol Support: Full detection of ERC-3643 compliant contracts and transactions
  • šŸŖ™ Multi-Token Support: ERC-20, ERC-721, ERC-1155 detection and analysis
  • 🌐 Multi-Chain Support: Works with any Ethereum-compatible blockchain
  • šŸ“Š Real-time Block Analysis: Live block monitoring with transaction breakdowns
  • šŸŽÆ Event Log Decoding: Intelligent parsing of blockchain events and logs
  • šŸš€ High Performance: Optimized RPC calls with smart caching strategies
  • šŸ’» Modern Web Interface: Clean, responsive Flask-based web application

šŸ› ļø Installation

Prerequisites

  • Python 3.8 or higher
  • Access to Ethereum-compatible RPC endpoint
  • Git

Quick Start

  1. Clone the repository

    git clone https://github.com/yourusername/CronoExplorer.git
    cd CronoExplorer
  2. Create virtual environment

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Configure your chains

    # Edit chains.yaml with your RPC endpoints
    nano chains.yaml
  5. Run the application

    python app.py
  6. Open your browser

    http://localhost:5001
    

āš™ļø Configuration

Chains Configuration (chains.yaml)

chains:
  Cronos:
    rpc_url: "https://evm.cronos.org"
    chain_id: 25
    name: "Cronos Mainnet"
    enabled: true
  
  Ethereum:
    rpc_url: "https://mainnet.infura.io/v3/YOUR_API_KEY"
    chain_id: 1
    name: "Ethereum Mainnet"
    enabled: true
  
  Polygon:
    rpc_url: "https://polygon-rpc.com"
    chain_id: 137
    name: "Polygon Mainnet"
    enabled: true

Environment Variables

Create a .env file for sensitive configuration:

# Database configuration
DATABASE_URL=sqlite:///instance/cronoexplorer.db

# Flask secret key
SECRET_KEY=your-secret-key-here

# RPC rate limiting
RPC_TIMEOUT=30
MAX_RPC_RETRIES=3

šŸŽÆ Usage

Web Interface

  1. Home Page: View latest blocks with transaction summaries
  2. Block Details: Click on any block to see detailed transaction analysis
  3. All Blocks: Browse blocks with pagination and search
  4. Chain Management: Switch between different blockchain networks

Transaction Classification

CronoExplorer automatically classifies transactions into:

  • Token Transfers: ERC-20, ERC-721, ERC-1155 transfers
  • Contract Deployments: New contract creations
  • T-REX Interactions: ERC-3643 protocol transactions
  • Generic Contracts: Other smart contract interactions
  • ETH Transfers: Native cryptocurrency transfers

Block Analysis

Each block shows:

  • Primary activity type
  • Gas efficiency metrics
  • Transaction classification breakdown
  • Contract creation counts
  • Token interaction summaries

šŸ”§ Development

Project Structure

CronoExplorer/
ā”œā”€ā”€ app.py                 # Main Flask application
ā”œā”€ā”€ config.py             # Configuration management
ā”œā”€ā”€ core/                 # Core classification logic
│   ā”œā”€ā”€ contract.py       # Contract and transaction classifiers
│   └── queries.py        # Blockchain RPC queries
ā”œā”€ā”€ models/               # Database models
ā”œā”€ā”€ services/             # Business logic services
ā”œā”€ā”€ templates/            # HTML templates
ā”œā”€ā”€ static/               # CSS, JS, and static assets
ā”œā”€ā”€ tests.py              # Test suite
└── requirements.txt      # Python dependencies

Running Tests

python tests.py

Adding New Chain Support

  1. Add chain configuration to chains.yaml
  2. Test RPC connectivity
  3. Verify transaction format compatibility

🌟 Advanced Features

Smart Caching

  • Transaction classification results are cached for performance
  • Block summaries reuse detailed transaction analysis
  • Minimizes redundant RPC calls

Event Fingerprinting

  • Fast contract type detection using event signatures
  • Topic0 matching against known event patterns
  • ERC-165 interface detection for standard compliance

Performance Optimization

  • Parallel RPC calls where possible
  • Lazy classification for non-critical data
  • Efficient log parsing and event decoding

šŸ¤ Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Submit a pull request

šŸ“„ License

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

About

No description, website, or topics provided.

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.