LUX
All Chains
P

P-Chain (Platform)

Core ChainLinear Consensus

Validator staking, sovereign L1 management, and network governance. The coordination backbone of Lux Network. Manages the lifecycle of all other chains.

Overview

The Platform Chain is the metadata blockchain on Lux Network. It coordinates validators, tracks active L1s, and enables the creation of new blockchains. All staking operations — delegating, adding validators, creating L1s — happen on the P-Chain.

The P-Chain implements the Quasar consensus protocol for linear chain ordering and provides the security backbone for the entire network. Every node on Lux Network validates the P-Chain, making it the most decentralized and secure chain in the ecosystem.

Key capabilities include validator set management with configurable staking parameters, sovereign L1 creation with custom VM configurations, cross-chain atomic transfers via shared memory, and reward distribution for validators and delegators.

Technical Specifications

ConsensusQuasar (Linear)
Block Time~2 seconds
FinalitySub-second
Min Stake2,000 LUX
Max ValidatorsUnlimited
Chain TypeRequired (all nodes)

Key Features

  • Validator staking with configurable lock periods
  • Sovereign L1 creation and management
  • Cross-chain atomic transfers
  • Reward distribution engine
  • Network governance parameters
  • Dynamic validator set rotation

SDK Example

Quick start using the Lux JavaScript SDK.

p-chain-example.ts
import { Lux } from 'luxnet'

const lux = new Lux('api.lux.network', 443, 'https')
const pchain = lux.PChain()

// Get current validators
const validators = await pchain.getCurrentValidators()
console.log(`Active validators: ${validators.validators.length}`)

// Add a delegator
const tx = await pchain.addDelegator(
  nodeID,
  startTime,
  endTime,
  stakeAmount,
  rewardAddress
)