lux chain
Create and deploy chains (chains)
The chain command (also aliased as chain) manages the full lifecycle of Lux chains -- creation, deployment, import/export, and configuration.
Commands
# Create a new chain configuration
lux chain create <name>
lux chain create <name> --evm-chain-id=12345
lux chain create <name> --token-name=MYTOKEN --token-symbol=MTK
lux chain create <name> --type=l1 # Sovereign L1
lux chain create <name> --type=l3 # App-specific L3
# Deploy to a network
lux chain deploy <name> --devnet
lux chain deploy <name> --testnet
lux chain deploy <name> --mainnet
# List configured chains
lux chain list
# Show chain details
lux chain describe <name>
# Import RLP blocks
lux chain import --chain=c --path=/path/to/blocks.rlp
lux chain import --chain=zoo --path=/path/to/zoo.rlp
# Export chain configuration
lux chain export <name>Chain Types
| Type | Flag | Description |
|---|---|---|
| L1 (default) | --type=l1 | Sovereign L1 chain with its own validator set |
| L3 | --type=l3 | Application-specific chain anchored to an L1 |
Chain Configuration
Configurations are stored in ~/.lux/chains/<name>/:
~/.lux/chains/<name>/
genesis.json Chain genesis with allocations and config
sidecar.json VM metadata and chain type
config.json Runtime configuration (optional)Deployment
When deploying, the CLI:
- Creates a chain on the P-Chain
- Adds validators to the chain
- Creates the blockchain with the genesis file
- Configures all nodes to track the new chain
Pre-deployed Chains
| Chain | Mainnet Chain ID | Chain ID |
|---|---|---|
| Zoo | 200200 | See blockchain-ids |
| Hanzo | 36963 | See blockchain-ids |
| SPC | 36911 | See blockchain-ids |
| Pars | 494949 | See blockchain-ids |