Files
logos-execution-zone/lez/explorer_service
Marvin Jones b9152f58c0 refactor(lee): migrate ChainedCall/Message program reference from ProgramId to AccountId
Chained-call and public-transaction dispatch now address the target
program directly by AccountId instead of routing through ProgramId and
converting internally, closing the gap that blocked PDA-addressed
program invocation. The field is named program_account_id (not
account_id) to stay unambiguous next to the account_ids list it sits
beside in the same structs.

Execution/PDA-derivation logic that fundamentally needs the RISC0 image
id (self_program_id, caller_program_id, env::verify, PDA seed
derivation) stays ProgramId-typed, recovering it from the dispatched
AccountId via the existing bijection where needed.
2026-08-22 16:58:27 -04:00
..

LEE Blockchain Explorer

A web-based UI for exploring the blockchain state, built with Rust and Leptos framework.

Features

  • Main Page: Search for blocks, transactions, or accounts by hash/ID. View recent blocks.
  • Block Page: View detailed block information and all transactions within a block.
  • Transaction Page: View transaction details including type, accounts involved, and proofs.
  • Account Page: View account state and transaction history.

Architecture

  • Framework: Leptos 0.8 with SSR (Server-Side Rendering) and hydration
  • Data Source: Indexer Service JSON-RPC API
  • Components: Reusable BlockPreview, TransactionPreview, and AccountPreview components
  • Styling: Custom CSS with responsive design

Development

Prerequisites

  • Rust (stable or nightly)
  • cargo-leptos tool: cargo install cargo-leptos
  • Running indexer service at http://localhost:8080/rpc (or configure via INDEXER_RPC_URL)

Build and Run

# Development mode (with hot-reload)
cargo leptos watch

# Production build
cargo leptos build --release

# Run production build
cargo leptos serve --release

The explorer will be available at http://localhost:3000 by default.

Configuration

Set the INDEXER_RPC_URL environment variable to point to your indexer service:

export INDEXER_RPC_URL=http://localhost:8080/rpc
cargo leptos watch

Features

The search bar supports:

  • Block IDs (numeric)
  • Block hashes (64-character hex)
  • Transaction hashes (64-character hex)
  • Account IDs (64-character hex)

Real-time Updates

The main page loads recent blocks and can be extended to subscribe to new blocks via WebSocket.

Responsive Design

The UI is mobile-friendly and adapts to different screen sizes.

License

See LICENSE file in the repository root.