Skip to main content
peaqOS runs on three layers. The Economics 2.0 contract set on (machine registry, subscriptions, price oracle, trust validator staking) is what every machine activates against; its Solana programs serve machines homed on Solana; and low-level , batch, and WPEAQ operations are peaq chain . Machines onboarded under Tokenomics 1.0: see legacy machines.

Architecture

  • Every client talks to Economics 2.0. The deployment record (peaq-mainnet by default) carries the seven role contracts and the EventRegistry the SDK writes through; the Solana-onboarding peers (OperatorRegistry, RemoteBondSettlement) are resolved through InfoDesk.peer(role). None is an environment variable. Before every activation, renewal and management write, the SDK checks that the six role contracts it writes through match InfoDesk.peer(role). The EventRegistry holds no InfoDesk role, so event submission uses the recorded address.
  • Core contracts use UUPS upgradeable proxies (OpenZeppelin 5.x) with ERC-7201 namespaced storage. Future upgrades preserve state.
  • The serves a JSON Machine Card for every Economics 2.0 machine. See Machine Card.

peaq mainnet addresses

Economics 2.0 (peaq mainnet)

Deployment record peaq-mainnet (chain ID 3338). All are ERC-1967 proxies. Economics 2.0 writes go through the SDKs and the CLI. The seven contracts marked SDK are the roles the SDK snapshot carries: before a write the SDK checks their bytecode and verifies the six other than InfoDesk against InfoDesk.peer(role). Of the other eleven, the SDKs resolve OperatorRegistry and RemoteBondSettlement through InfoDesk.peer(role) for a Solana onboarding and read the record’s EventRegistry for event submission; the rest are used by peaq’s own services. None of them is an environment variable. The PEAQ token the bond is paid in is not a deployed contract: InfoDesk.peaqToken() resolves to the native-balance precompile 0x0000000000000000000000000000000000000809.

Solana mainnet addresses

Economics 2.0 (Solana mainnet)

Eleven Anchor programs. Protocol chain ID 5, LayerZero EID 30168. All keep the deployment wallet as upgrade authority and as administrator of each program’s root account. Configuration: bonds are sized from peaq’s tier prices mirrored to Solana ($0.02 / $0.20 / $40 for Entry, Basic and Pro), native SOL and bridged PEAQ whitelisted as currencies, bridging on and relocation off. On the peaq side MachineBridgeAdapter has the Solana store PDA registered as its LayerZero peer. Sync messages use the trust validator node in both directions. The SDKs and CLI reach InfoDesk, MachineBridgeAdapter, MachineRegistry, MachineStateAndSync, EventRegistry, MachineSubscriptionTerminal, PriceOracle and SubscriptionTokenProvisionPool (deployment record solana-mainnet in the JS SDK, the Solana half of peaq-mainnet in the Python SDK): management, reads and event submission for machines homed on Solana, and onboarding (terminal-first in seven stages). CoordinationFeeCollector, TreasuryPool and TrustValidatorStaking are deployed but not configured in the SDKs; nothing the SDKs call depends on them. MachineSubscriptionTerminal owns the SubscriptionTerminal account the programs read for onboarding and event eligibility; which subscription account the SDKs read is selected by the deployment record’s reader setting (terminal). With the SDKs and CLI the bond for a Solana machine is paid on Solana through MachineSubscriptionTerminal, in PEAQ or in USDC swapped to exactly the bond, and peaq’s trust validator node books it onto peaq. See Onboard a machine on Solana and Omni-chain for the status of each capability.

Agung testnet addresses

Economics 2.0 (agung testnet)

Deployment record agung-2026-08-28 (chain ID 9990). Same seven SDK roles as mainnet. Agung pairs no MCR and records no EventRegistry, so monetization calls, MCR reads and event submission fail with DEPLOYMENT_UNAVAILABLE before signing (CLI: exit 3, ADDRESSES_UNSET for events, CONFIG_ERROR for MCR reads).

Economics 2.0 contracts

MachineRegistry

The 2.0 machine registry: one ERC-721 per machine where the token ID is the machine ID (uint256(keccak256(abi.encode(machineType, credentialSubject)))), plus the machine’s DID document (controller, verification methods, authentication, service endpoints). Standard ERC-721 transfers and approvals are how a machine changes owner. New machines are minted inside MachineStateAndSync.activateMachine; the registry’s other mint paths (legacy reissue, relocation import) are callable only by MachineStateAndSync and MachineBridgeAdapter. There is no public mint. SDK methods: getMachineOwner, computeMachineId, transferMachine, safeTransferMachine, approveMachine, setMachineApprovalForAll, setMachineController, setMachineVerificationMethods, setMachineAuthentication, setMachineServiceEndpoints

MachineStateAndSync

Orchestrates the one-transaction activation (activateMachine, activateMachineWithUsdt), voluntary suspend and resume, per-machine and protocol-wide pause flags, and relocation. Never holds tokens. SDK methods: activateMachine, activateMachineWithUsdt, previewMachineActivation, suspendMachine, resumeMachine, getMachineActivationState, getMachineAvailability

MachineSubscription

Prices and collects the tier bond (requiredPeaqAmount(tier)), stores each machine’s subscription (tier, period, bonded amount), applies grace and runoff, and tracks bonding reward and voucher credits. A renewal can also change the tier, up or down, once the period has ended (Grace or Runoff), priced at the full bond of the new tier; a tier change is refused while the machine is Active. The contract source supports it, but the build deployed on peaq mainnet does not carry the Active-state refusal. The published peaq-mainnet deployment record therefore does not enable tier selection on renewal: the CLI and the SDKs refuse a tier there (RENEWAL_TIER_UNSUPPORTED) and today a renewal keeps the stored tier. The allowance spender for PEAQ bonds. Settlement functions are called by the trust validator node. SDK methods: activateExistingMachine, renewMachine, previewMachineRenewal, getMachineSubscription

InfoDesk

Owner-set protocol parameters (tier prices in USD, grace and runoff durations, epoch length, fee rates, burn and treasury addresses), the peer registry the SDK verifies against (the owner can set or clear a role; a cleared role reads as the zero address), the trust validator allowlist, and peaqToken(), which is set once and cannot be re-pointed.

PriceOracle

Daily currency prices committed by trust validator nodes (commitPrices), read by MachineSubscription to convert USD tier prices to PEAQ. Public read: getLatestPrice(bytes32 currency).

CrossChainMirror and MachineBridgeAdapter

Record the machine’s home chain and carry the messages between peaq and Solana. Sync messages (mirror pushes such as the link push, and revenue reports from Solana) go through the trust validator node by default: the sending adapter emits TvRelayQueued with a nonce per destination, and the node delivers each message to the other chain’s adapter (tvReceive on peaq, tv_receive on Solana) in nonce order. Only an allowlisted trust validator can deliver. No LayerZero fee is paid on this route; the node pays the delivery transaction. The owner can switch a message type to LayerZero (on peaq InfoDesk.setTransport, or setChainTransport for one destination; on Solana set_sync_route); there is no automatic failover between the two. The relocation handshake and peaq’s Retire broadcast always travel over LayerZero V2, and the node refuses them on both chains. InfoDesk.isBridgingEnabled() is true and isMachineRelocationEnabled() is false, so relocation stays disabled and the SDKs expose status reads only. For a machine homed on Solana, MachineBridgeAdapter applies the owner’s link push coming back from Solana; lastAppliedMirrorPushSeq(5, 0, machineId, MACHINE_REGISTRY_KEY) at or above the push’s sequence is what the SDK calls complete. SDK methods: getMachineRelocationStatus

SubscriptionTokenProvisionPool

Pays out the PEAQ bond for bonds collected on another chain, and settles --payment usdt / activateMachineWithUsdt / renewMachine with payment: "usdt" when a USDT token is configured in the pool. On peaq mainnet none is set, so USDT payments fail. The allowance spender for USDT.

TrustValidatorStaking, CoordinationFeeCollector, ExecutionCostReserve, EventRegistry, MachineMigrationHub

Live on mainnet. EventRegistry is the write target of submitEvent / submit_event / peaqos qualify event for peaq-homed machines; its address comes from the deployment record. The other four are operated by peaq or reserved for later releases and not exposed in the SDKs or the CLI. See Economics 2.0.

AdminFlags

Optional peaq-chain contract read by the MCR API server (not the SDK), which takes its address from ADMIN_FLAGS_ADDRESS: 0x1c5f33fBEE6BA38ed9bDE247C1Ba89A2116C25f1 on peaq mainnet, 0x4181a2Aa34aFb247450FfcBd65be5aBD4Cbee658 on agung. Holds admin-set flags that modify responses: per-machine negative_flags and trust-level overrides. MCR consumers see the adjusted score in their API response. When the contract isn’t configured, contracts.admin_flags on GET /ready reports true (the optional check is skipped) and the service serves unmodified MCR.

Precompiles (peaq chain)

LayerZero endpoints

Used by MachineBridgeAdapter for relocation, peaq’s Retire broadcast and any sync message type switched to LayerZero (the Solana link push included; it travels over the trust validator node by default). You don’t set these directly; the SDK handles them. The JS SDK exports the peaq EID as LAYER_ZERO_EIDS.peaq (30302); the Python SDK exports no EID constant (the record carries it as solana.peaq_layerzero_eid).

Upgrade pattern

All Economics 2.0 contracts use OpenZeppelin UUPS upgradeable proxies with ERC-7201 namespaced storage. Implementation slots are kept distinct by namespace, so future upgrades won’t collide with existing state. The Solana programs are upgradeable BPF programs; the deployment wallet holds each program’s upgrade authority.

See also

Install

Install the SDK or CLI; the Economics 2.0 addresses ship inside the SDK.

SDK reference

Every method that reads or writes these contracts.

API reference

Off-chain reads derived from the on-chain state.