What ships
Qualify runs on
peaq-mainnet. The agung deployment (agung-2026-08-28) records no EventRegistry and has no MCR, so event submission and MCR reads there fail with DeploymentConfigError DEPLOYMENT_UNAVAILABLE before anything is signed (CLI: exit 3).How it works
1
Submit events
Each time a machine earns revenue or performs a trackable activity, the machine’s owner or controller submits an to the EventRegistry. The SDK validates the payload, computes a Full walkthrough: Submit events.
keccak256 data hash, and writes the minimal on-chain record. The samples below write to peaq’s EventRegistry for a peaq-homed machine.For a machine homed on Solana, Python’s submit_event routes to the Solana EventRegistry program by itself once client.solana_signer is set to the owner’s or controller’s Solana wallet (otherwise SIGNER_UNAVAILABLE). In JS you choose the chain: build the client with svm: { rpcUrl } and pass { getSigner } as the second argument. A JS client with svm, which PeaqosClient.fromEnv() returns when PEAQOS_SVM_RPC_URL is set, submits Solana-homed events only, so the JS sample builds its client without one (SDK JS, SDK Python).- JavaScript
- Python
- CLI
2
Events accumulate
A freshly activated machine is until it has enough history to score. Events feed the scoring pipeline, which combines status, the consistency, history and tenure of revenue and activity, , and how recent the last event is.
3
Query the MCR
Any consumer can fetch the current rating from the public API.The server covers machines homed on peaq and on Solana. It picks up a newly activated machine after a delay; until then it answers
404 (NOT_FOUND in both SDKs). Retry later instead of treating it as a failed activation.Response includes the rating (AAA / AA / A / BBB / BB / B / NR / Provisioned), score, event counts, revenue trend, and bond status. Full walkthrough: Query MCR.Cross-chain revenue
Revenue earned on another chain (e.g., ) is recorded on the machine’s home chain (peaq, or Solana for a machine homed there) withsourceChainId and sourceTxHash pointing to the origin . Consumers can verify each event against its source chain.
See Events and Trust levels.
The stays canonical on peaq; a machine is read from peaq or its . See the Omni-chain concept and the roadmap.
Concepts
Machine Credit Rating
AAA-to-NR scale, lifecycle from Provisioned to rated.
Events
Revenue and activity records that feed MCR.
Trust levels
Self-reported, on-chain verifiable, hardware-signed.
SDK reference
submitEvent: Write a single event to EventRegistry.validateSubmitEventParams: Validate event params client-side.computeDataHash: keccak256 of raw event data.queryMcr: Fetch a machine’s rating from the MCR API.
API reference
GET /mcr/{did}
Rating, score, trend, bond status for a single machine.
GET /operator/{did}/machines
Paginated operator fleet with per-machine MCR.
Guides
Submit events
Event types, validation, data hashing, cross-chain pattern.
Query MCR
Fetch ratings from curl, JS, or Python.

