Get Metadata By tokenid

tokenid of ERC721 specification.

The following URL points to the test environment. Replace it with the production's url (https://api.startrail.io/startrail) as necessary.

Please note that there are two endpoints here:

Get metadata by tokenid only endpoint

Get token metadata JSON

get

Get metadata JSON for a given token.This is the ERC721 tokenURI().

Path parameters
tokenFilestringRequired

Name of file which should be in the form <ERC721 token id>.json

Example: 20469176713323657527.json
Responses
200Success
get
GET /startrail/api/v1/srr/metadata/{tokenFile} HTTP/1.1
Host: api-stg.startrail.startbahn.jp
Accept: */*

No content

If the tokenid belongs to a collection contract you should use the following endpoint that gets the contractAddress as well, otherwise use the above endpoint.

Get metadata by tokenid and collection contract address endpoint

Get token metadata JSON

get

Get collection metadata JSON for a given token.This is the ERC721 tokenURI().

Path parameters
contractAddressstringRequired
tokenFilestringRequired

Name of file which should be in the form <ERC721 token id>.json

Example: 20469176713323657527.json
Responses
200Success
get
GET /startrail/api/v1/srr/metadata/{contractAddress}/{tokenFile} HTTP/1.1
Host: api-stg.startrail.startbahn.jp
Accept: */*

No content

Swagger Endpoint (Test Environment)

Swagger to Get metadata JSON for a given token.

Swagger to Get collection metadata JSON for a given token.

Required Permissions

No required permission. This endpoint is public as the information is also public.

Last updated

Was this helpful?