Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zcash Explorer

Zcash Explorer Next.js TypeScript License

A modern, privacy-focused Zcash blockchain explorer with AI-powered assistance

FeaturesQuick StartArchitectureConnected ProjectsDocumentation


🌟 Overview

Zcash Explorer is a comprehensive blockchain explorer built specifically for the Zcash ecosystem. It provides real-time insights into the Zcash blockchain with a focus on privacy features, shielded transactions, and user experience.

Key Highlights

  • 🔐 Privacy-First Design: Full support for shielded transaction decryption and wallet scanning
  • 🤖 AI-Powered: Integrated ElizaOS agent for intelligent Zcash assistance
  • ⚡ Real-Time Updates: Live blockchain stats with 10-second auto-refresh
  • 📊 Comprehensive Analytics: Detailed block, transaction, and network statistics
  • 🎨 Modern UI: Clean, responsive design with dark/light theme support
  • 💰 Market Integration: Live price charts and market data powered by CoinGecko, getblock RPC

🏗️ Architecture

Data Sources

This explorer aggregates data from multiple sources to provide comprehensive blockchain insights:

1. Zcash RPC Node

Primary data source using standard JSON-RPC methods:

  • getblockchaininfo - Chain state and verification status
  • getbestblockhash - Latest block information
  • getblockhash - Block lookup by height
  • getblock - Detailed block data with transactions
  • getrawtransaction - Transaction details
  • getnetworkhashps - Network hashrate
  • getchaintxstats - Transaction statistics

Supported RPC Providers:

  • GetBlock.io (recommended for quick setup)
  • Self-hosted zcashd node
  • Other Zcash RPC providers

2. Market Data API

  • CoinGecko API: Real-time ZEC price, market cap, volume, and 30-day price history
  • Automatic fallback and rate limiting
  • Cached responses for optimal performance

🔗 Connected Projects

This explorer integrates with multiple specialized services to provide enhanced functionality:

1. Zcash Transaction Decryptor (zcashShieldedTxDecryption)

Purpose: Decrypt shielded Zcash transactions using Unified Full Viewing Keys (UFVK)

Repository: zcashShieldedTxDecryption Repository: zcashblockdecryption

Features:

  • ✅ Decrypt Sapling and Orchard shielded outputs
  • ✅ Extract transaction memos
  • ✅ Scan wallet by block range, last 1 hour, or wallet birthday
  • ✅ Privacy-focused (UFVK never stored)
  • ✅ Support for up to 100 blocks per scan

2. Zcash AI Agent (zcashagent103)

Purpose: AI-powered assistant for Zcash-related questions

Repository: zcashagent103

Technology: ElizaOS (AI agent framework)

Features:

  • ✅ Answer questions about Zcash protocol
  • ✅ Explain shielded transactions and privacy features
  • ✅ Provide blockchain data insights
  • ✅ Context-aware responses
  • ✅ Typing indicators and connection status

3. GetBlock RPC Provider

Purpose: Hosted Zcash node RPC access

4. CoinGecko API

Purpose: Zcash market data and price information

Service Communication Flow

┌─────────────────┐
│  Zcash Explorer │
│   (Next.js)     │
└────────┬────────┘
         │
         ├─────────────────┐
         │                 │
         v                 v
  ┌──────────┐      ┌──────────────┐
  │ GetBlock │      │  CoinGecko   │
  │   RPC    │      │     API      │
  └──────────┘      └──────────────┘
         │
         v
  ┌─────────────────────────────┐
  │  Blockchain Data (Blocks,   │
  │  Transactions, Network Info)│
  └─────────────────────────────┘
         │
         ├──────────────┐
         │              │
         v              v
  ┌─────────────┐ ┌──────────────┐
  │  Decryption │ │  AI Agent    │
  │   Services  │ │  (ElizaOS)   │
  └─────────────┘ └──────────────┘
         │              │
         v              v
  ┌─────────────┐ ┌──────────────┐
  │  Shielded   │ │  Q&A Chat    │
  │  Tx Data    │ │  Interface   │
  └─────────────┘ └──────────────┘

🚀 Quick Start

Prerequisites

  • Node.js ≥ 18
  • npm or pnpm
  • A Zcash RPC endpoint URL (e.g. from GetBlock or your own zcashd node)

Installation

  1. Clone the repository:
git clone https://github.com/Len3hq/zcash-explorer.git
cd zcash-explorer
  1. Install dependencies:
npm install
# or
pnpm install
  1. Configure environment variables:

Create a .env.local file in the project root:

# ============================================
# Zcash RPC Configuration
# ============================================
# Required: Primary Zcash RPC endpoint
ZCASH_RPC_URL=https://go.getblock.io/YOUR_API_KEY


# ============================================
# Decryption Services (Optional)
# ============================================
# Single transaction decryption
ZCASH_DECRYPT_API_URL=

# Wallet scanner (batch block decryption)
ZCASH_SCANNER_API_URL=

# ============================================
# ElizaOS Agent (Optional)
# ============================================
NEXT_PUBLIC_ELIZA_SOCKET_URL=
NEXT_PUBLIC_ELIZA_AGENT_ID=

# ============================================
# Server Configuration
# ============================================
PORT=3002

Running the Explorer

Development mode (with hot reload):

npm run dev

Production build:

npm run build
npm start

Access the explorer:

  • Local: http://localhost:3002
  • Production: Your deployed URL

📚 Documentation

Comprehensive guides and references:

Setup Guides

🛠️ Technology Stack

Frontend

  • Next.js 14 - React framework with App Router and Server Components
  • TypeScript - Type-safe development
  • React 18 - UI library with Server Components
  • Chart.js - Interactive price charts
  • date-fns - Date formatting and manipulation
  • CSS Variables - Custom theme system with dark/light modes

Backend & APIs

  • Socket.IO Client - Real-time bidirectional communication
  • Next.js API Routes - Serverless API endpoints
  • Zcash JSON-RPC - Direct blockchain data access
  • CoinGecko API - Cryptocurrency market data

External Services

  • ElizaOS - AI agent framework
  • Railway - Cloud deployment platform
  • GetBlock.io - Hosted Zcash RPC nodes
  • PostgreSQL - Caching database for scanner service

🤝 Contributing

We welcome contributions! Here's how you can help:

Reporting Issues

  • Check existing issues before creating new ones
  • Provide detailed reproduction steps
  • Include screenshots for UI issues
  • Specify your environment (OS, browser, Node version)

Pull Requests

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

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

👥 Team

Built with ❤️ by:

🔗 Links

❤️ Support

If you find this explorer useful, please consider:

  • ⭐ Starring the repository
  • 📢 Sharing with the Zcash community
  • 💰 Supporting via the "Support Our Work" button in the footer

Back to Top

Made with privacy and transparency in mind 🔐

Releases

Packages

Contributors

Languages