Transactions
- Overview
- Installation
- Endpoints
- Examples
Indexer
- Overview
- Installation
- Endpoints
- Examples
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- public
- POSTDirectoryGetCollections
- POSTDirectoryGetNetworks
- POSTEnqueueTokensForRefresh
- POSTGetContractInfoBatch
- POSTGetContractInfo
- POSTGetTokenMetadataBatch
- POSTGetTokenMetadata
- POSTRefreshTokenMetadata
- POSTSearchContractInfoBatch
- POSTSearchContractInfo
- POSTSearchTokenIDs
- POSTSearchTokenMetadata
- POSTSearchTokens
- POSTTokenCollectionFilters
- POSTRefreshAllContractTokens
- POSTRefreshContractInfo
- POSTRefreshContractTokens
- POSTSearchContracts
- POSTSearchMetadata
- POST
- secret
- Examples
Infrastructure
- Overview
- Endpoints
Builder
- Overview
- Endpoints
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
public
GetTokenMetadata
GetTokenMetadata - fetch token metadata for a particular contract and respective tokenIDs
POST
/
rpc
/
Metadata
/
GetTokenMetadata
curl --request POST \
--url https://metadata.sequence.app/rpc/Metadata/GetTokenMetadata \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"chainID": "80002",
"contractAddress": "0xaf8a08bf8b2945c2779ae507dade15985ea11fbc",
"tokenIDs": [
"19371963813488842961773981353605630758075094402"
]
}'
{
"tokenMetadata": [
{
"tokenId": "19371963813488842961773981353605630758075094402",
"name": "Dragon Shield Shield",
"description": "A free AI treasure chest mini-game",
"image": "https://metadata.sequence.app/projects/1229/collections/40/tokens/19371963813488842961773981353605630758075094402/image.png",
"properties": null,
"attributes": [
{
"display_type": "category",
"trait_type": "Category",
"value": "defensive"
},
{
"display_type": "defense_min",
"trait_type": "Defense Minimum",
"value": "59"
},
{
"display_type": "defense_max",
"trait_type": "Defense Maximum",
"value": "67"
},
{
"display_type": "tier",
"trait_type": "tier",
"value": "Common"
},
{
"display_type": "type",
"trait_type": "type",
"value": "Shield"
}
],
"decimals": 0,
"updatedAt": "2024-10-10T18:08:04.22766865Z"
}
]
}
Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Response
200
application/json
OK
[]TokenMetadata
Represented as uint32 on the server side
Available options:
NOT_AVAILABLE
, STALE
, AVAILABLE
[]Asset
[]byte
Represented as uint8 on the server side
Available options:
QUEUED
, PAUSED
, FAILED
, COMPLETED
Was this page helpful?
curl --request POST \
--url https://metadata.sequence.app/rpc/Metadata/GetTokenMetadata \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"chainID": "80002",
"contractAddress": "0xaf8a08bf8b2945c2779ae507dade15985ea11fbc",
"tokenIDs": [
"19371963813488842961773981353605630758075094402"
]
}'
{
"tokenMetadata": [
{
"tokenId": "19371963813488842961773981353605630758075094402",
"name": "Dragon Shield Shield",
"description": "A free AI treasure chest mini-game",
"image": "https://metadata.sequence.app/projects/1229/collections/40/tokens/19371963813488842961773981353605630758075094402/image.png",
"properties": null,
"attributes": [
{
"display_type": "category",
"trait_type": "Category",
"value": "defensive"
},
{
"display_type": "defense_min",
"trait_type": "Defense Minimum",
"value": "59"
},
{
"display_type": "defense_max",
"trait_type": "Defense Maximum",
"value": "67"
},
{
"display_type": "tier",
"trait_type": "tier",
"value": "Common"
},
{
"display_type": "type",
"trait_type": "type",
"value": "Shield"
}
],
"decimals": 0,
"updatedAt": "2024-10-10T18:08:04.22766865Z"
}
]
}