x = await Moralis.Web3API.account.getNFTs({address: '0xfa350CFf201158e2a7e6bBfc25506d3554336b53', chain: 'eth'})
=>
2 results
same for https://deep-index.moralis.io/api/v2/0xfa350CFf201158e2a7e6bBfc25506d3554336b53/nft?chain=eth&format=decimal
x = await Moralis.Web3API.account.getNFTs({address: '0xfa350CFf201158e2a7e6bBfc25506d3554336b53', chain: 'eth'})
=>
2 results
same for https://deep-index.moralis.io/api/v2/0xfa350CFf201158e2a7e6bBfc25506d3554336b53/nft?chain=eth&format=decimal
Weird. The owner of the wallet messaged me to say that he can’t see his NFTs anymore. And when I run the same thing using in the dashboard web3 UI to quickly debug I get this result:
{
"total": 0,
"page": 0,
"page_size": 500,
"result": []
}
But you are right. Ran the same thing with code and I get the NFTs back…
By the way, I think the problem that started this for us is the fact that even when the call from code brings back data, the metadata field stay empty, although it actually suppose to have this data:
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Indigo"
},
{
"trait_type": "Skin",
"value": "Siamese"
},
{
"trait_type": "Face",
"value": "Tongue Out"
},
{
"trait_type": "TopsAssets",
"value": "Kings Robe"
},
{
"trait_type": "FaceAssets",
"value": "VR Glasses"
},
{
"trait_type": "HeadAssets",
"value": "Empty"
}
],
"description": "A collection of 9,999 Punk Kitties NFTs on Ethereum blockchain",
"image": "https://www.thepunkkitties.io/image/81.png",
"name": "PunkKitty #81"
},
It looks like I made a different request, you had nft/address and I made address/nft
regarding the metadata: https://docs.moralis.io/misc/faq#why-is-metadata-null-for-some-nfts
Thx! Yes, make since regarding the metadata. I was thinking about implementing some async engine/cron job that goes and update metadata info.
And OMG, You are right, My fault with the call. Not enough sleep I guess. Sorry about that!