Pobieranie metadanych NFT
Pobierz metadane NFT (URL obrazu, nazwa, atrybuty) dla konkretnego tokena na Chiliz Chain używając Moralis NFT API.
Czym są metadane NFT?
Jak to zrobić z 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);
}Jak to zrobić z Tatum
Jak to zrobić z thirdweb
Jak to zrobić z Nodit
Ostatnia aktualizacja
Czy to było pomocne?