Update Collection

We have a token collection that was synced way long ago. At the time we used to store our meta on an s3 server. Now it’s on the ipfs and the server is now down. So, all users now have broken images throughout the moral app (old token URLs are still cached on moralis platform). Is there a way to update all contract metadata at once? I’ve tried calling refreshMetadata function using your API for each token in a loop but it did not help.

Since you have updated the token uri, You have to call the refresh metadata twice.
First use the URI flag to update the URI and then use metadata flag to update the metadata(which fetched metadata from the new URI)

Thank you for the advice. I’ll let you know how it goes!

1 Like