Metadata Service Guide

Cronos ID has a Metadata Service, which allows third party NFT platforms and wallets to integrate and display the information of Cronos IDs.

Service Endpoints

Production Environment https://metadata.cronosid.xyz/

Contracts

  • Testnet, CRORegistrar: 0x8101623b9F430C5A3fa808619456B8d98ba5A894

  • Mainnet, CRORegistrar: 0xf884647Dfa84696d9373F36eE413CCc48093F924

NFT Metadata API

Request path:

/{networkName}/{contractAddress}/{tokenId}

Parameters:

  • Network: Name of the chain to query for (mainnet | testnet)

  • contractAddress: Accepts contractAddress of the NFT which is represented by the tokenId

  • tokenId: Accepts labelhash of Cronos ID domain in both hex and int format

Response Body:

Response Fields:

Field
Description

name

name of the domain

description

Short description about the name. It contains a warning message if the domain is not comprised of numbers and letters.

is_normalized

Whether the domain is normalized. It must follow UTS46 for normaliztion and validation.

attributes

A list of attributes, including: - Created Date - Length - Segment Length - Character Set - Registration Date - Expiration Date

name_length

Character length of the domain

segment_length

Segment length of the domain. Local-sensitive text segmentation obtained by Intl.Segmenter.

url

A URL to the domain's profile page on Cronos ID website

version

Cronos ID NFT version

background_image

Origin URL of the avatar image

image

URL of the domain image to display (recommended)

image_url

URL of the NFT image

NFT Metadata Image API

Request Path:

Parameters:

  • network: Name of the chain to query for (mainnet | testnet)

  • contactAddress: Accepts contractAddress of the NFT which is represented by the tokenId

  • tokenId: Accepts labelhash of Cronos ID domain in both hex and int format

Response Body:

A SVG image file

  • the content-type is ‘image/svg+xml’.

Last updated