The NFT token object consistently returns null
values for metadata
and token_uri
fields when fetching NFT data using Moralis API and SDK.
Example: This NFT is fully visible on the Opensea website and full data available on the Opensea API
But when using the Moralis API to fetch the same NFT using this request
curl -X 'GET' \
'https://deep-index.moralis.io/api/v2/nft/0xec8ae6851e02e3679c3f60af72251ed54243b912/12?chain=eth&format=decimal' \
-H 'accept: application/json' \
-H 'X-API-Key: <removed token>'
The response object that is returned contains null
values for metadata
and token_uri
{
"token_address": "0xec8ae6851e02e3679c3f60af72251ed54243b912",
"token_id": "12",
"amount": "1",
"owner_of": "0x6a9ab67aa546e518883a5f2913d4ce230436a18d",
"block_number": "13709983",
"block_number_minted": "13709983",
"contract_type": "ERC721",
"name": "Kmotion",
"symbol": "PUKS",
"token_uri": null,
"metadata": null,
"is_valid": 0,
"syncing": 0,
"synced_at": null,
"frozen": 0
}
This issue is occurring consistently for all NFTs I have tried including on testnet networks such as Rinkeby and Ropsten.
It is affecting the Moralis Web API, the Moralis Javascript SDK, and the react-moralis library.
Similar issues have also been reported in the last few days:
update-on-several-issues-web3-api
After speaking with Crypto Kid
and Ivan on Tech
in Discord, I believe this issue might be a bug related to the data indexing on the Moralis platform.
Thank you