Lux Docs

Backend

Blockscout-based Elixir/Erlang backend

The explorer backend is a Blockscout fork built with Elixir/Erlang OTP. It handles blockchain data indexing, storage, and API serving.

OTP Umbrella Apps

AppPurpose
block_scout_webPhoenix web API and endpoints
explorerCore chain data and business logic
ethereum_jsonrpcJSON-RPC client interface
indexerBlockchain data fetcher and indexer
utilsShared utilities
nft_media_handlerNFT media processing

Technology Stack

  • Runtime: Elixir 1.19.4 + Erlang 27.3.4.6
  • Web: Phoenix 1.7 + Plug
  • Database: Ecto + PostgreSQL 14+
  • Cache: Redis
  • GraphQL: Absinthe + Relay pagination
  • Crypto: ex_keccak, ex_secp256k1, ex_eth_bls
  • Docker: Multi-stage Alpine build

Docker Image

docker build -t blockscout:latest \
  --build-arg MIX_ENV=prod \
  --build-arg RELEASE_VERSION=10.0.1 \
  -f docker/Dockerfile .

Production image: ghcr.io/luxfi/blockscout-lux

On this page