Lux Docs

DAG Chains

Vertex/edge indexing for Lux DAG consensus

DAG Data Model

DAG chains use vertex/edge consensus instead of linear blocks:

  • Vertices: Units of consensus (like blocks)
  • Edges: Parent relationships between vertices
  • Transactions: UTXO-based asset transfers

Supported DAG Chains

ChainPurposePort
X-ChainAsset exchange (UTXO)4200
A-ChainAI compute operations4500
B-ChainBridge transfers4600
Q-ChainQuantum operations4300
T-ChainMPC key shares4700
Z-ChainZK proof verification4400
K-ChainKMS operations4900

Usage

./indexer -chain xchain -rpc http://luxd:9630/ext/bc/X -port 4200
./indexer -chain achain -rpc http://luxd:9630/ext/bc/A -port 4500

DAG Traversal

The indexer traverses the DAG by following parent edges from the frontier (latest vertices) back to genesis. Each vertex is stored with its parent relationships for graph queries.

On this page