Moralis Web3 API not fetching revealed metadata

Hello Moralis!

I stumbled upon a problem with the metadata fetching for a particular project.
I am fetching owned NFTs fromt he Coolman’s Universe NFT project using a rest API request (axios).

https://deep-index.moralis.io/api/v2/${account}/nft/0xa5c0bd78d1667c13bfb403e2a3336871396713c5?chain=eth&format=decimal

In this example the account is the users’ connected wallet address. Upon fetching I get the following metadata:

// 20220116131015
// https://ipfs.moralis.io:2053/ipfs/QmSojJUvYLe8oDewRzHmt16DV61AqKdKjzeZPhtYkSqdiC/7119

{
  "description": "This is a placeholder for your Coolman's Universe NFT! Check back once the metadata has been revealed to see your Spesh!",
  "image": "ipfs://QmSaisWGHeLe4U2kkm6QScAEzpm16NfzvzyCsFKWJXQfSk",
  "name": "Coolman's Universe #7119"
}

It seems this is the unrevealed metadata. When I go by myself to etherscan and fill in the TokenURI I get the following:

// 20220116131135
// https://bafybeigj3uitydckmyockvzblc4pxx5gq6eponmncl6jbmcoz2xsoqcnga.ipfs.dweb.link/7119

{
  "attributes": [
    {
      "trait_type": "Background",
      "value": "Ur Special Yellow"
    },
    {
      "trait_type": "Body",
      "value": "Orange"
    },
    {
      "trait_type": "Mouth",
      "value": "Kissy"
    },
    {
      "trait_type": "Eyes",
      "value": "Relieved"
    },
    {
      "trait_type": "Clothes",
      "value": "Urspecial Pinkblue"
    },
    {
      "trait_type": "World",
      "value": "Donut World"
    }
  ],
  "name": "Coolman's Universe #7119",
  "description": "Spesh is looking for his best friend throughout Coolman's Universe. To travel through this universe, Spesh uses a surfboard and a compass. This compass is no ordinary compass. Not only does this compass point Spesh in the right direction to find his friend, it also tracks the path that Spesh's friend has taken. As Spesh follows his compass (while surfing Coolman's Universe), he finds himself exploring worlds that he's never experienced.",
  "image": "ipfs://QmdU49poCm6GKrp4Qbir8KSDTtA8W2641p1XTRvX3dJX5u/7119.png"
}

Which is the actual metadata. From the API it also shows that the data is ‘Synced’ full object below:

{token_address: '0xa5c0bd78d1667c13bfb403e2a3336871396713c5', token_id: '7119', block_number_minted: '13832759', owner_of: '0xd6B01c20918a7Ba5D05E81DC59DEd322962b4D37', block_number: '13838369', …}
amount: "1"
block_number: "13838369"
block_number_minted: "13832759"
contract_type: "ERC721"
frozen: 0
is_valid: 1
metadata: "{\n  \"description\": \"This is a placeholder for your Coolman's Universe NFT! Check back once the metadata has been revealed to see your Spesh!\",\n  \"image\": \"ipfs://QmSaisWGHeLe4U2kkm6QScAEzpm16NfzvzyCsFKWJXQfSk\",\n  \"name\": \"Coolman's Universe #7519\"\n}"
name: "CoolmansUniverse"
owner_of: "0xd6B01c20918a7Ba5D05E81DC59DEd322962b4D37"
symbol: "COOLMAN"
synced_at: "2021-12-19T02:00:52.911Z"
syncing: 2
token_address: "0xa5c0bd78d1667c13bfb403e2a3336871396713c5"
token_id: "7119"
token_uri: "https://ipfs.moralis.io:2053/ipfs/QmSojJUvYLe8oDewRzHmt16DV61AqKdKjzeZPhtYkSqdiC/7519"

Anyone knows how I can get the revealed metadata using the rest API request from Moralis Web3 API?

https://docs.moralis.io/misc/faq#why-is-metadata-outdated

1 Like

Ah I see, let’s wait for the feature then :slight_smile: