Lux Docs

API Reference

Cross-language API reference for all chain types

All Lux chains expose JSON-RPC APIs. The SDK wraps these APIs with typed clients in each language.

Chain APIs

APIEndpointDescription
P-Chain/ext/bc/PValidators, chains, staking, delegations
X-Chain/ext/bc/XUTXO operations, asset creation and transfer
C-Chain/ext/bc/C/rpcEVM JSON-RPC (eth, net, web3 namespaces)
Sovereign L1 EVM/ext/bc/{name}/rpcSame as C-Chain, per-chain endpoint
Info/ext/infoNode info, network ID, node ID
Health/ext/healthNode and chain health status
Admin/ext/adminNode administration (whitelisted)

P-Chain Methods

MethodDescription
platform.getCurrentValidatorsList active validators with stake and uptime
platform.getPendingValidatorsValidators waiting to join
platform.getBlockchainsAll blockchains registered on the network
platform.getSubnetsAll chains with validator membership
platform.getBalanceP-Chain address balance
platform.getTxTransaction by ID
platform.getHeightCurrent P-Chain height

X-Chain Methods

MethodDescription
xvm.getBalanceAddress balance for a specific asset
xvm.getUTXOsUnspent transaction outputs
xvm.sendSend assets (requires unlocked keystore)
xvm.getAssetDescriptionAsset metadata (name, symbol, denomination)
xvm.getTxTransaction by ID

C-Chain Methods

Standard Ethereum JSON-RPC methods are supported:

MethodDescription
eth_blockNumberLatest block number
eth_getBalanceAccount balance in wei
eth_sendRawTransactionBroadcast signed transaction
eth_callRead-only contract call
eth_getTransactionReceiptTransaction receipt with logs
eth_getLogsFilter event logs
eth_subscribeWebSocket subscriptions (newHeads, logs)

Info Methods

curl -X POST http://127.0.0.1:9630/ext/info \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"info.getNodeID","params":{},"id":1}'
MethodDescription
info.getNodeIDNode's ID and BLS public key
info.getNetworkIDNetwork ID (1=mainnet, 2=testnet)
info.getNetworkNameHuman-readable network name
info.getBlockchainIDBlockchain ID for a given alias
info.peersConnected peers

On this page