Skip to main content
GET
GET /metadata/{token_id}

Endpoint

Returns metadata for a machine token. A machine’s and its are the same value, so the server checks that the token exists in MachineRegistry (or, for a Solana-homed machine, on its home chain) and builds the same response as GET /machine/{did} for did:peaq:<token_id>. This endpoint is designed to serve as an ERC-721 tokenURI target.

Path parameters

integer
required
NFT token ID, which equals the decimal machine ID. Range 1 to 2^256-1.

Response

200 OK The response shape is identical to GET /machine/{did}: the same base fields, the optional data_api, and the extra fields a Solana-homed machine carries. See that page for the full field reference. peaqos.machine_id is the token ID as a decimal string, peaqos.did is did:peaq:<token_id>, and name is "Machine #<token_id>".

Error responses

Example

Response