Integrate
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
cURL
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