Listing getHemiNames on NFT Marketplaces
Last updated
Last updated
You can integrate NFTs secondary market metadata following the steps below:
Fetch the URI endpoint to call from the tokenURI(uint256 tokenId)
function of the contract.
Where tokenId
is the token ID of the NFT - uint256(keccak256(bytes("label")))
.
The function returns the metadata endpoint to call for the NFT.
Fetch the metadata from the endpoint.
you can expect the metadata to be in the format of a JSON file:
You can always decide to save the base URI in your own storage and fetch it from there, thus avoiding the need to call the tokenURI
function of the contract.