Update NFTs
Make your NFTs change over time
Dynamic NFTs are tokens whose content changes over time. There are two ways to achieve this with Crossmint:
- Using Crossmint’s Edit NFT API
- Storing the metadata offchain and updating it on your database. To use this option, set the property
reuploadLinkedFiles
tofalse
when minting an NFT.
Using the Edit NFT API
The Edit NFT API allows you to update the metadata of an existing NFT, including its name, description, image, and attributes. This is useful for creating NFTs that evolve over time or need to be updated based on external events.
Prerequisites
- Ensure your API key is a server-side key with the
nfts.update
scope - You need the collection ID and NFT ID from the minting process
Implementation
Using Off-chain Metadata
You can also store the metadata off-chain and update it directly:
- When minting the NFT, set
reuploadLinkedFiles
tofalse
- Use your own server to host the metadata
- Update the metadata on your server as needed
Use Cases for Dynamic NFTs
Dynamic NFTs enable a wide range of applications:
- Game Assets: NFTs that evolve as players progress
- Membership Passes: NFTs that update based on membership status
- Event Tickets: NFTs that change before, during, and after events
- Digital Collectibles: NFTs that evolve based on real-world events
- Loyalty Programs: NFTs that update based on customer activity
Best Practices
When implementing dynamic NFTs:
- Plan for Updates: Design your NFT with future updates in mind
- Versioning: Consider including version information in your metadata
- Event Triggers: Define clear conditions for when updates should occur
- User Communication: Inform users about how and when their NFTs might change
- Testing: Thoroughly test update mechanisms before implementation
FAQs
How often can I update an NFT?
How often can I update an NFT?
With Crossmint’s Edit API, you can update NFTs as needed, but consider blockchain transaction costs and network congestion. For very frequent updates, consider using off-chain metadata.
Will updates to an NFT affect its provenance or value?
Will updates to an NFT affect its provenance or value?
Updates don’t change the token ID or ownership history, but the perceived value may change based on the nature of the updates. It’s important to communicate your update policy to collectors.
Can I schedule updates to happen automatically?
Can I schedule updates to happen automatically?
Crossmint doesn’t provide native scheduling, but you can implement scheduled updates using your own backend services that call the Edit API at specified times.
Do all marketplaces support dynamic NFTs?
Do all marketplaces support dynamic NFTs?
Most marketplaces will display the current state of your NFT’s metadata, but the frequency of metadata refreshes may vary by marketplace.