How to get the metadata of a specific NFT
What is NFT metadata?
How to do it with Moralis
import Moralis from 'moralis';
try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});
const response = await Moralis.EvmApi.nft.getNFTMetadata({
"chain": "0x15b38", // This is for Chiliz Chain Mainnet.
// For Spicy Testnet, use "0x15b32".
"format": "decimal",
"normalizeMetadata": true,
"mediaItems": false,
"address": "0xYourNFTContractAddress",
"tokenId": "1"
});
console.log(response.raw);
} catch (e) {
console.error(e);
}How to do it with Tatum
How to do it with thirdweb
How to do it with Nodit
Last updated
Was this helpful?