For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to retrieve SRR metadata

The following is the method to retrieve the SRR metadata using the Subgraph.

For querying to subgraph, please check this doc.

Open the subgraph

Open the following page in your browser.

Subgraph startrail-polygon

Query

Paste the following query into the left pane of the screen and press the execute button.

{
  srrs(where: { tokenId: "469529826613"}) {
    tokenId
    metadataDigest
  }
}

The result of execution is here.

Alt text

This metadataDigest is an IPFS CID. Please refer to this page for an explanation of IPFS. You can request the IPFS CID using an IPFS gateway as follows.

Recommended: the Startrail IPFS CDN gateway

This is a managed gateway operated by Startbahn that pins all Startrail content; see Startrail IPFS CDN gateway for details.

Other public gateways will work too, for example Cloudflare's:

Or Storacha Network's:

You can find more IPFS gateways in here.

Metadata in IPFS

Important note

For SRRs issued before 2023, the metadataDigest may contain a string starting with 0x. This can be verified with a tokenId like the one below:

In this case, the metadata is not be uploaded to IPFS. To retrieve the metadata, use the Startrail API endpoint via Get Metadata by Token ID.

Last updated

Was this helpful?