Lux Docs

Indexer Integration

Using the Lux Indexer as an alternative backend

The Lux Indexer (github.com/luxfi/indexer) is a high-performance Go alternative to the Blockscout Elixir backend.

API Compatibility

The indexer provides Blockscout API v2 compatible endpoints, so the explorer frontend can use either backend:

EndpointBlockscoutLux Indexer
/api/v2/blocksYesYes
/api/v2/transactionsYesYes
/api/v2/addresses/:hashYesYes
/api/v2/tokensYesYes
/api/v2/statsYesYes
GraphQLYesYes
WebSocketYesYes

Switching Backends

To use the Lux Indexer instead of Blockscout:

# Frontend .env
NEXT_PUBLIC_API_HOST=http://indexer-api.lux.network

No frontend code changes required.

When to Use Each

Use CaseRecommendation
Standard EVM explorerBlockscout (battle-tested)
High-performance indexingLux Indexer
DAG chain indexing (X, A, B, Q, T, Z, K)Lux Indexer (exclusive)
P-Chain indexingLux Indexer (exclusive)
Multi-chain (100+)Lux Indexer (exclusive)
DeFi protocol indexingLux Indexer

On this page