Hello, I’m trying to get the attribute of a NFT i saw on OpenSea.
this is my piece of code:
const options = { address: ‘0x36A52262a85Bf8FE213267DA4Ed85e42e1eFeD82’, token_id: ‘280’ };
Moralis.Web3API.token.getTokenIdMetadata(options).then((resp) => {
console.log(“resp”, resp);
});
this is the some metadata part of the response i got:
- metadata: "{“attributes”:[{“trait_type”:“Armor”,“value”:“X”},{“trait_type”:“Visor”,“value”:“X”},{“trait_type”:“Helmet Top”,“value”:“X”},{“trait_type”:“Respirator”,“value”:“X”},
all the attributes are “X”, i know that when this nft came live they were all the same with all attribute X before reveal but no they have the real value like on opensea so i dont understand why my data are not updated ?
When i use it with mekaverse token for example:
const options = { address: ‘0x9a534628b4062e123ce7ee2222ec20b86e16ca8f’, token_id: ‘8491’ };
Moralis.Web3API.token.getTokenIdMetadata(options).then((resp) => {
console.log(“resp”, resp);
});
the response contains the right value
{“trait_type”: “Eyes”, “value”: “F9 Green E7”}, {“trait_type”: “Mask”, “value”: “F9 Knight”}, {“trait_type”: “Jaws”, “value”: “F9 Assault”}