You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
Many NFT collections are first released without any metadata, and then it is "revealed" at some point in the future. This is a critical moment, because it's when users discover if they have a rare item or not. Being able to get the metadata immediately after a reveal is highly coveted amongst NFT tools. Below is a potential way to do it:
Take the first token in the collection, and keep track of it's tokenURI
Have a public API to check on-chain if the tokenURI has changed
This API can have a high global rate limit (e.g. once per second), because it's only one call
Once a change is detected, save the new URI, and trigger an on-chain metadata index for the full collection
This could potentially be built into the existing collection refresh API. Where it allows this check once per second, but only allows a full refresh every hour.