Skip to content
Paxeer X

LayerX Programs

Same program.Same result.Every node.

Deterministic WebAssembly programs run inside the LayerX kernel and move value only through kernel-applied transfers.

SampleSame bytes, fees and receipt

One money path

Programs ask, the kernel applies

A program has no authority to write balances. It can only request transfers, and the kernel validates and applies each set atomically.

PROGRAM(WASM)REQUESTTRANSFER SETLAYERX KERNELVALIDATEAPPLY ATOMICALLYBALANCES(KERNEL STATE)NO DIRECT WRITE
  1. 01Arrive
  2. 02Run
  3. 03Sequence
  4. 04Replay
  5. 05FinalCommitted block
Sample

The program side. Write in Rust, C or AssemblyScript, compile to WebAssembly and deploy. A given call always produces the same result, the same fees and the same receipt.

The kernel side. Every transfer goes through the authenticated 402LXP transfer, the single money path every other module uses. A signed receipt returns before any block is voted.

Capabilities

Grants that only shrink

Call other programs without handing them more power than you gave. A grant can be reduced, never widened.

PROGRAM APROGRAM BPROGRAM CGRANTNARROWERNARROWESTREFUSEDWIDER GRANT: NEVER ISSUED
Sample

Bounded grants

A program receives explicit grants, such as permission to spend a bounded amount from a specific account. Nothing is implied beyond what the grant names, and the callee cannot ask for more.

Escalation is refused

When one program calls another, the grant can only be reduced. An attempt to widen it is refused outright, and the refusal holds across call depth and fan-out.

Tested with hostile programs

A hostile-program test suite exercises cross-program derivation, callee spend attempts and escalation, so the narrowing rule is checked against code that is trying to break it.

Program accounts

Funds only the program can spend

A program can hold its own funds. People can fund the account, but only the program, inside its own call, can authorize a debit.

Linework illustration of a ledger rhythm with one blue element.

Program-owned accounts

The account ID is a domain-separated SHA-256 hash of the program and a seed. It has no authority key. The C kernel and the Rust runtime compute the same bytes, pinned by frozen vectors.

Storage rent, named payer

Storage is charged by bytes held across protocol batches, not clock time. A signed mandate names the payer and caps bytes and lifetime charge. Each charge resolves to a stated outcome in the batch receipt.

Balances proven by chain

The registry resolves a balance by checking Merkle proofs rooted in committed state. A receipt alone is not accepted as evidence, and wind-down cannot finish while a bound account holds value without an exit route.

Identical machined parts in a row on a steel inspection bench in a dark workshop.

Frozen ABI

Versions 1 to 5 are admitted, and their vectors are checksummed

Frozen test vectors cannot drift quietly. The guest engine is a pinned wasmi interpreter with floating point removed.

Start here

Start from working code

Pick a reference program or bring a contract you already know. Each kit and SDK ships with tests and a determinism lint.

Sample

Reference programs

The Rust SDK ships an escrow, naming, an LXT721 NFT, a merchant payments flow, a constant-product swap, an LXT20 token, a vault and a web reader. C and AssemblyScript each ship a paid counter.

Porting kits

Kits for EVM, Solana with Anchor and CosmWasm map storage layouts, message encodings, seed derivation and value flows onto the programs ABI. Each guide says plainly what does not carry over.

Solidity contracts and wallets on chain 125 reach programs through the 0x101D precompile.