Lux Docs
Lux Reference

Lux Explorer

Single-Binary Omni-Chain Block Explorer

Overview

Lux Explorer is a single-binary Go block explorer for browsing transactions, contracts, tokens, and network activity across the Lux ecosystem. It indexes an arbitrary number of heterogeneous blockchains concurrently (EVM, DAG, linear, DEX, FHE/threshold, post-quantum, zero-knowledge) with per-chain SQLite storage isolation and end-to-end post-quantum encrypted streaming backups to S3.

The legacy Blockscout-based Elixir explorer is archived at github.com/luxfi/explorer-v1.

Repository: github.com/luxfi/explorer License: MIT

Technology Stack

ComponentVersionNotes
Go1.26.1Single statically-linked binary
SQLiteWAL modePer-chain isolation, embedded
BadgerDBv4KV layer for hash/height lookups
Next.js15Frontend (separate github.com/luxfi/explore)
DockerAlpine 3.19Runtime image

Architecture

Single Binary

The explorer contains three concurrent subsystems:

SubsystemPurpose
Indexer goroutinesOne per chain, each writing to its own SQLite + BadgerDB
API serverHTTP server serving /v1/explorer/{chain}/* endpoints
ReplicatorPer-chain WAL streaming to S3 with PQ encryption

Per-Chain Storage

{data_dir}/{chain_slug}/
  query/indexer.db    # SQLite: blocks, txs, tokens, contracts
  kv/                 # BadgerDB: hash->data, height->block

Each chain is fully isolated. No shared database. Zero write contention between chains.

Supported Networks

NetworkChain IDCurrencyExplorer URL
LUX Mainnet96369LUXexplore.lux.network
LUX Testnet96368LUXtestnet.explore.lux.network
Zoo Mainnet200200ZOOexplore-zoo.lux.network
SPC Mainnet36911SPCexplore-spc.lux.network
Hanzo AI36963HZOexplore-hanzo.lux.network
Pars494949PARSexplore-pars.lux.network

Native Chain Types

9 Lux chain types indexed natively:

  • EVM: C-Chain, Zoo, Hanzo, SPC, Pars (blocks, transactions, tokens, contracts, DeFi)
  • DAG: X, A, B, Q, T, Z, K (vertices, edges, UTXOs, attestations, proofs)
  • Linear: P-Chain (validators, delegators, staking, subnet management)

Plus 100+ external chains (Ethereum, Solana, Bitcoin, Cosmos, Move, etc.).

API Surface

  • REST: /v1/explorer/* (blocks, transactions, addresses, tokens, stats, search)
  • GraphQL: /graphql endpoint + playground
  • WebSocket: Real-time block/transaction subscriptions
  • Prometheus: /metrics endpoint

Development

Build

go build -o explorer ./cmd/explorer

Run

# Single chain
./explorer --rpc=http://localhost:9650/ext/bc/C/rpc

# Multi-chain
./explorer --config=chains.yaml

Docker

docker build -t ghcr.io/luxfi/explorer:latest .

Tests

go test -v ./...

White-Label

The explorer is white-label by design. Zero branding in code. Runtime-configurable via chains.yaml:

chains:
  - slug: cchain
    name: "C-Chain"
    chain_id: 96369
    rpc: "http://luxd:9630/ext/bc/C/rpc"
    logo: "/logos/lux.svg"
    color: "#1a1a2e"

File Structure

explorer/
  cmd/explorer/      # CLI entrypoint
  evm/               # EVM indexer (blocks, txs, tokens, traces, contracts, DeFi)
  evm/api/           # REST API server
  dag/               # DAG vertex/edge indexer
  chain/             # Linear block indexer
  storage/           # Dual-layer SQLite + BadgerDB
  multichain/        # 100+ external chain indexer
  {x,a,b,q,t,z,k}chain/  # Per-chain adapters
  config/chains.yaml # Chain configuration
  go.mod             # github.com/luxfi/explorer

On this page