curl --request POST \
--url https://metadata.sequence.app/rpc/Metadata/GetTokenMetadata \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"chainID": "<string>",
"contractAddress": "<string>",
"tokenIDs": [
"<string>"
]
}
'{
"tokenMetadata": [
{
"tokenId": "<string>",
"name": "<string>",
"attributes": [
{}
],
"status": "NOT_AVAILABLE",
"description": "<string>",
"image": "<string>",
"video": "<string>",
"audio": "<string>",
"properties": {},
"imageData": "<string>",
"externalUrl": "<string>",
"backgroundColor": "<string>",
"animationUrl": "<string>",
"decimals": 123,
"updatedAt": "<string>",
"assets": [
{
"id": 123,
"collectionId": 123,
"metadataField": "<string>",
"tokenId": "<string>",
"url": "<string>",
"filename": "<string>",
"filesize": 123,
"mimeType": "<string>",
"width": 123,
"height": 123,
"updatedAt": "<string>"
}
],
"queuedAt": "<string>",
"lastFetched": "<string>"
}
],
"task": {
"id": 123,
"queue": "<string>",
"try": 123,
"payload": [
"<string>"
],
"status": "QUEUED",
"runAt": "<string>",
"lastRanAt": "<string>",
"createdAt": "<string>",
"hash": "<string>"
}
}GetTokenMetadata - fetch token metadata for a particular contract and respective tokenIDs
curl --request POST \
--url https://metadata.sequence.app/rpc/Metadata/GetTokenMetadata \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"chainID": "<string>",
"contractAddress": "<string>",
"tokenIDs": [
"<string>"
]
}
'{
"tokenMetadata": [
{
"tokenId": "<string>",
"name": "<string>",
"attributes": [
{}
],
"status": "NOT_AVAILABLE",
"description": "<string>",
"image": "<string>",
"video": "<string>",
"audio": "<string>",
"properties": {},
"imageData": "<string>",
"externalUrl": "<string>",
"backgroundColor": "<string>",
"animationUrl": "<string>",
"decimals": 123,
"updatedAt": "<string>",
"assets": [
{
"id": 123,
"collectionId": 123,
"metadataField": "<string>",
"tokenId": "<string>",
"url": "<string>",
"filename": "<string>",
"filesize": 123,
"mimeType": "<string>",
"width": 123,
"height": 123,
"updatedAt": "<string>"
}
],
"queuedAt": "<string>",
"lastFetched": "<string>"
}
],
"task": {
"id": 123,
"queue": "<string>",
"try": 123,
"payload": [
"<string>"
],
"status": "QUEUED",
"runAt": "<string>",
"lastRanAt": "<string>",
"createdAt": "<string>",
"hash": "<string>"
}
}Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
OK
[]TokenMetadata
Show child attributes
Represented as uint32 on the server side
NOT_AVAILABLE, STALE, AVAILABLE []Asset
Show child attributes
Show child attributes
Was this page helpful?