Lux Docs

lux wallet

Transfer assets and check balances

The wallet command provides direct asset transfer and balance queries across all Lux chain types.

Commands

# Check balances across all chains
lux wallet balance
lux wallet balance --chain C
lux wallet balance --chain P

# Transfer LUX between addresses
lux wallet transfer --to <address> --amount <n>
lux wallet transfer --to <address> --amount 1.5 --chain C

# Fund a chain from another chain
lux wallet fund --chain zoo --amount 10

# Export assets from one chain
lux wallet export --from C --to P --amount 100

# Import assets to a chain
lux wallet import --to P

Wallet Access

Keys are loaded in priority order:

PrioritySourceExample
1--private-key flag--private-key 0xac09...
2LUX_PRIVATE_KEY envexport LUX_PRIVATE_KEY=0x...
3LUX_MNEMONIC envexport LUX_MNEMONIC="word1 word2 ..."

When using LUX_MNEMONIC, the key is derived at BIP-44 path m/44'/60'/0'/0/0.

Token Denominations

ChainDecimalsExample
P-Chain6--amount 2000 = 2000 LUX
X-Chain6--amount 100 = 100 LUX
C-Chain18--amount 1.5 = 1.5 LUX (EVM decimals)

Network Selection

# Default: uses running local network
lux wallet balance

# Specific network
lux wallet balance --mainnet
lux wallet balance --testnet

# Custom RPC
lux wallet balance --rpc http://127.0.0.1:9630/ext/bc/C/rpc

On this page