LUXDocumentation
Docs/X-Chain (Exchange)

X-Chain (Exchange)

High-speed asset creation and transfers using a DAG-based UTXO model. Multi-asset support with atomic swaps, optimized for maximum throughput.

Overview

The Exchange Chain is Lux Network's DAG-based asset platform. It uses a UTXO model for maximum parallelism — transactions that don't conflict can be processed simultaneously, enabling throughput that scales with network capacity.

Unlike account-based chains, the X-Chain's UTXO model provides inherent privacy benefits and enables atomic multi-asset transfers in a single transaction. Assets created on the X-Chain can represent anything: tokens, NFTs, stablecoins, or custom digital instruments.

The DAG consensus allows transactions to be confirmed without waiting for blocks, achieving sub-second finality for simple transfers. Complex operations involving multiple UTXOs are batched efficiently.

Technical Specifications

ConsensusQuasar (DAG)
ModelUTXO
Finality<1 second
Asset TypesFungible, NFT, Variable-cap
Chain TypeRequired (all nodes)

Features

DAG-based UTXO model for parallel processing
Native multi-asset creation and transfer
Atomic cross-chain swaps
Sub-second transaction finality
Variable transaction fees
NFT and collectible support

Quick Start

Install the Lux SDK and start interacting with Exchange Chain.

Installation

npm install luxnet

Example

import { Lux, BN } from 'luxnet'

const lux = new Lux('api.lux.network', 443, 'https')
const xchain = lux.XChain()

// Create a new asset
const tx = await xchain.createFixedCapAsset(
  'MyToken',     // name
  'MTK',         // symbol
  0,             // denomination
  [{ address: myAddress, amount: new BN(1000000) }]
)

SDKs & Libraries

API Reference

Full API reference documentation is available at docs.lux.network.

View Full API Docs