Skip to main content

Documentation Index

Fetch the complete documentation index at: https://xpectrum.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Octra is a layer-1 blockchain with native support for fully homomorphic encryption (FHE) and programmable isolated execution environments called Circles. Xpectrum’s contracts run directly on Octra’s AML virtual machine.

AML: the smart contract language

Octra contracts are written in AML (Abstract Machine Language) and compiled to OCTB bytecode. AML is Octra’s native contract language. Not Solidity, not a fork of anything. Xpectrum’s contracts (Xcollection, Xlist, Xmarket) are all AML programs. One important constraint: atomicity. If a call() to another contract fails, any transfer() that happened earlier in the same function call reverts. This is why all proceeds on Xpectrum are pull-based rather than pushed at settlement time.

FHE: Fully Homomorphic Encryption

Octra has native FHE support at the VM level. Operations like fhe_mul, fhe_add_const, and fhe_verify_range are available to contracts. Xpectrum v1 doesn’t use FHE directly. It’s on the research roadmap for future versions: private collection state, sealed bids, that kind of thing.

Circles

Circles are isolated execution environments on Octra. They run AML/OCTB bytecode, hold their own state, and can call other on-chain contracts via call(address, "method", args). Xpectrum deploys one Circle per collection. The Circle is sealed. Only verified NFT holders can interact with it. WASM execution inside Circles is rolling out.
Circles are live on Xpectrum. The current implementation is collection-wide: one Circle per collection, gated by NFT ownership.

Network endpoints

NetworkRPC
Devnethttps://devnet.octrascan.io/rpc
Mainnethttps://octra.network/rpc
Xpectrum runs on devnet. To call a view function:
curl -X POST https://devnet.octrascan.io/rpc \
  -H "Content-Type: application/json" \
  -d '{
    "method": "octra_callProgramView",
    "params": ["<contract_address>", "get_contract_info", []],
    "id": 1
  }'