Archival Hyperliquid Node

A modular, high-performance archival Hyperliquid node implementation with enhanced capabilities for historical state access, WebSocket support, and optimized proof generation.

Websitegithub
  • 126 Raised
  • 1,504 Views
  • 1 Judges

Categories

  • 01. 🛠️ Public Goods
  • 05. Improvements to the HyperEVM RPC

Gallery

Description

Archival Hyperliquid Node

A modular, high-performance archival Hyperliquid chain based Ethereum node implementation with enhanced capabilities for historical state access, WebSocket support, and optimized proof generation.

Features

🏛️ Comprehensive Archival Support

  • Full Historical State Access: Store and query complete historical blockchain state
  • Intelligent Caching: Multi-level caching for accounts, storage, and state roots
  • Configurable Retention: Flexible policies for data retention and pruning
  • Snapshot Support: Periodic state snapshots for fast historical access

🌐 Enhanced WebSocket Server

  • Real-time Subscriptions: Support for newHeads, logs, pendingTransactions, and custom stateChanges
  • High Concurrency: Handle thousands of concurrent WebSocket connections
  • Connection Management: Automatic cleanup of stale connections
  • Subscription Filtering: Advanced filtering for logs and state changes

🔍 Optimized Proof Generation

  • Parallel Processing: Multi-threaded proof generation for improved performance
  • Proof Caching: Intelligent caching of recently generated proofs
  • Batch Operations: Generate multiple proofs in parallel
  • Extended API: Enhanced eth_getProof with historical block support

🏗️ Modular Architecture

  • Component-Based Design: Easily extensible and customizable components
  • Provider Abstraction: Clean separation between storage, networking, and RPC layers
  • Configuration-Driven: Comprehensive configuration system with validation
  • Plugin Support: Easy integration of custom functionality

Key Components

  1. ArchivalProvider: Enhanced state access with caching
  2. ArchivalStorageProvider: Optimized storage with compression
  3. ArchivalWebSocketServer: High-performance WebSocket handling
  4. ArchivalRpcModule: Extended RPC API with archival methods
  5. ProofGenerationService: Parallel proof generation with caching