Orbitra Prime
Trading intelligence
When a strategy, vault or structured workflow needs onchain logic, it runs as a NexusWASM contract and trades through the same ApexMatch and Aegis paths as an order placed in Orbitra Prime.
Primary smart-contract environment
NexusWASM is the primary smart-contract environment of Orbitra L1. Contracts compile from Rust, C/C++ and other modern toolchains to WebAssembly, run in a deterministic sandbox and reach assets, state and market modules only through the capabilities they are granted. Compute and storage are priced explicitly, and declared state access lets VectorLanes run unrelated contracts side by side.
How it moves
Capabilities
Metered compute
Metered storage
The illustration shows a NexusWASM contract sealed inside a sandbox. Around it sit only the capabilities it declared, native market modules among them; nothing else is reachable. Two meters track compute and storage separately as the call runs, and the contract’s declared state access passes to the scheduler, which runs it in parallel with unrelated work.
The problem
In many contract environments, every contract holds ambient authority. It can call any other contract, move any asset it controls and touch state it never declared. That model is easy to start with and hard to secure: one unexpected call path can turn a small defect into a drained treasury, and reviewing a single contract means reasoning about everything it might reach.
Openness of that kind also limits performance. A runtime that cannot know in advance which state a transaction will touch must run transactions one after another, or execute speculatively and roll back on conflict. Pricing often folds computation, storage and long-term state growth into one abstract unit, so the lasting cost of state is poorly reflected in what a transaction pays.
NexusWASM starts from the opposite assumptions. Authority is granted, not ambient. State access is declared, not discovered. Compute and storage are metered and priced separately. Applications can therefore call real market infrastructure — ApexMatch order books, Aegis risk checks, Prism prices — without inheriting the risks of an open-ended execution model.
Operating sequence
Every contract — a payment router, an asset registry, an agent treasury — follows the same path from compiler to finality.
Rust, C/C++ or another language that targets WebAssembly compiles against NexusSDK interfaces, producing the module and a manifest of the capabilities it requests.
Before a module can run, the network checks it: only deterministic instructions are accepted, every import must match a declared capability and resource limits are recorded against the code hash.
Each requested capability — hold an asset, call a market module, read a price feed, invoke another contract — is bound to the contract’s address. Anything not granted simply does not exist for the contract.
Every transaction lists the state it will read and write. The deterministic scheduler uses these sets to place non-conflicting transactions on parallel lanes.
The module runs in a metered sandbox. Compute is charged as instructions execute and storage as state is written and retained; any access outside the declared sets aborts the call and reverts its effects.
Results commit with the other transitions of the block and become final when a QSE quorum certifies them.
Architecture
NexusWASM separates what a contract computes from what it is allowed to reach.
Executes WebAssembly under rules that give every validator the same result. Anything that could differ between machines — clocks, randomness, host-specific numeric behavior — is excluded or supplied by the protocol as a deterministic input.
The only bridge between a contract and the rest of the network. Host functions for assets, storage, identity and market modules are exposed per capability, and every call is checked against the contract’s grants.
Counts compute as instructions execute and storage as state is written and retained, with a separate price for each. Per-call limits stop any single contract from monopolizing a lane.
Turns each transaction’s declared reads and writes into a conflict map for the deterministic scheduler, so independent contracts run on separate lanes while dependent ones are ordered.
Typed interfaces into ApexMatch, Aegis and Prism. A contract can place an order, request a risk evaluation or read a confidence-scored price in the same transition as its own logic.
Code changes are explicit, versioned transitions under a policy fixed at deployment — immutable, time-delayed or subject to multi-party approval, for example. Every version keeps its code hash and capability manifest.
Security and failure control
NexusWASM keeps a defect inside the contract that contains it, and enforces that boundary in the runtime rather than by convention.
Across the three systems
Orbitra Prime
Trading intelligence
When a strategy, vault or structured workflow needs onchain logic, it runs as a NexusWASM contract and trades through the same ApexMatch and Aegis paths as an order placed in Orbitra Prime.
Orbitra L1
Settlement and compute
NexusWASM is the contract runtime of the Orbitra L1 execution layer. It runs on VectorLanes, commits to shared state and hands results to QSE for finality. EVM Capsule sits beside it as an isolated compatibility domain, never in its place.
Orbitra Realm
Applications and commerce
Orbitra Realm applications — payments, tokenization, games, agent services — run natively as NexusWASM contracts, sharing identity, assets and liquidity with the rest of the network through NexusSDK primitives and VaultID permissions.
Value
Specifications
Terminology