Lux Docs

Backend

Go single-binary explorer backend

The explorer backend is a single Go binary that handles blockchain indexing, storage, and API serving. The legacy Blockscout Elixir fork is archived at github.com/luxfi/explorer-v1.

Components

ComponentPurpose
Indexer goroutinesPer-chain data fetching
API serverREST, GraphQL, WebSocket endpoints
Storage layerSQLite (query) + BadgerDB (KV)
ReplicationPQ encrypted WAL streaming to S3

Technology Stack

  • Language: Go 1.26.1
  • Query storage: SQLite WAL mode (per-chain isolation)
  • KV storage: BadgerDB v4
  • API: /v1/explorer/* REST + GraphQL + WebSocket
  • Backup: ML-KEM-768 + X25519 encrypted streaming
  • Docker: Alpine multi-stage build

Build

cd explorer
go build -o explorer ./cmd/explorer

Run

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

Production image: ghcr.io/luxfi/explorer

On this page