[SOLVED] Last_token_uri_sync mistmatched with last_metadata_sync

Hey all,

I have a resync metadata button for our clients to be able to manually update and resync their metadata. However, it looks like the tokenURISync is mismatched and hasnt been synced in a while.This is causing the reveal to be unshown on the dapp.

Can you paste an example for which it doesn’t work to resync metadata?

the above example is a perfect one. They just revealed but the tokenURI i think is still outdated, I’m calling resync metadata.

A good example is the following parameters
Contract address: 0x1ab8c55870A404E769868982645E81ab6Ec76F7A
token id: 2742

The way I’m calling resync metadata is like this

      const options = {
        address: currentNftContract.address, // same as 0x1ab8c55870A404E769868982645E81ab6Ec76F7A
        token_id: id,
        flag: "metadata",
      };
      await Moralis.Web3API.token.reSyncMetadata(options);

you could use flag “uri” instead of “metadata”, with uri flag it will also try to update the token_uri and not only the metadata

1 Like

This works!! Thanks so much!

1 Like