público
GetTokenMetadata
Transacciones
- Resumen
- Instalación
- Endpoints
- Ejemplos
Indexador
- Resumen
- Instalación
- Endpoints
- Ejemplos
Gateway del Indexador
Analíticas
- Descripción general
- Endpoints
- Ejemplos
Metadatos
- Resumen
- Endpoints
- público
- POSTDirectoryGetCollections
- POSTDirectoryGetNetworks
- POSTEnqueueTokensForRefresh
- POSTGetContractInfoBatch
- POSTGetContractInfo
- POSTGetTokenMetadataBatch
- POSTGetTokenMetadata
- POSTRefreshTokenMetadata
- POSTSearchContractInfoBatch
- POSTSearchContractInfo
- POSTSearchTokenIDs
- POSTSearchTokenMetadata
- POSTSearchTokens
- POSTTokenCollectionFilters
- POSTRefreshAllContractTokens
- POSTRefreshContractInfo
- POSTRefreshContractTokens
- POSTSearchContracts
- POSTSearchMetadata
- POST
- secreto
- Ejemplos
Infraestructura
- Resumen
- Endpoints
Builder
- Resumen
- Endpoints
Marketplace
- Resumen
- Endpoints
- Ejemplos
RPC Blockchain
público
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
Body
application/json
Response
200
application/json
OK
The response is of type object
.
¿Esta página le ayudó?
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"
}
]
}