특정 NFT 메타데이터 조회하기
Moralis NFT API를 사용하여 Chiliz Chain에서 특정 NFT의 메타데이터(이미지 URL, 이름, 속성)를 조회합니다.
NFT 메타데이터란?
Moralis로 조회하는 방법
import Moralis from 'moralis';
try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});
const response = await Moralis.EvmApi.nft.getNFTMetadata({
"chain": "0x15b38", // Chiliz Chain Mainnet용.
// Spicy Testnet은 "0x15b32"를 사용합니다.
"format": "decimal",
"normalizeMetadata": true,
"mediaItems": false,
"address": "0xYourNFTContractAddress",
"tokenId": "1"
});
console.log(response.raw);
} catch (e) {
console.error(e);
}Tatum으로 조회하는 방법
thirdweb으로 조회하는 방법
Nodit으로 조회하는 방법
마지막 업데이트
도움이 되었나요?