Return NFT metadata for a MachineNFT token, intended as an ERC-721 tokenURI target.
Documentation Index
Fetch the complete documentation index at: https://docs.peaq.xyz/llms.txt
Use this file to discover all available pages before exploring further.
tokenURI target.
| Field | Type | Description |
|---|---|---|
schema_version | string | Always "1.0" |
name | string | "Machine #<token_id>" when the token round-trips, or "Machine (no NFT)" if the on-chain NFT lookup returns 0 |
peaqos.machine_id | integer | On-chain machine ID resolved from the token |
peaqos.did | string | Machine DID derived from the owner address (did:peaq:<owner_address>) |
peaqos.operator | string or null | Operator DID from the DID document |
peaqos.mcr | string | Letter rating: AAA, AA, A, BBB, BB, B, NR, or Provisioned |
peaqos.mcr_score | integer | MCR score 0-100 |
peaqos.bond_status | string | "bonded" or "unbonded" |
peaqos.negative_flag | boolean | true when the AdminFlags contract has a negative-flag timestamp set for this machine. Stays true for as long as the timestamp is recorded on-chain, regardless of whether the 180-day MCR scoring penalty is still in effect. |
peaqos.event_count | integer | Total on-chain event count |
peaqos.data_visibility | string | "private", "onchain", or "public" |
peaqos.documentation_url | string or null | Public documentation URL from the DID document |
data_api, event_data, partner_data, partner_data_error) depend on data_visibility. See GET /machine/ for details.
| Status | detail | Condition |
|---|---|---|
| 404 | "Token not found" | Token ID does not map to any machine in the MachineNFT contract |
| 404 | "Machine not registered" | The token’s machine ID is not present in the IdentityRegistry contract |
| 422 | (FastAPI validation error) | token_id is less than 1 or not an integer |
| 503 | "Service not initialised" | Server started without contract addresses |
| 503 | "Chain unavailable" | Any chain or DID call failed |