Updating and freezing NFT metadata
We've added two new capabilities to our NFT prebuilt contracts:
Update NFT metadata
As an admin of your NFT collection, you can now update the metadata of NFTs that have already been minted.
These metadata updates can only be performed by holding the METADATA_ROLE
, which you are granted upon deploying your NFT contract.
Smart Contract API
For NFT Collection, Edition and Loyalty Card (ref):
For NFT Drop and Edition Drop (ref):
Freeze NFT metadata
As an admin of your NFT collection, you can also freeze the NFT metadata of the NFTs in your collection.
Once you freeze metadata – the metadata of NFTs can no longer be updated once they are minted. However, minters can continue to mint new NFTs. Freezing metadata is irreversible i.e. you cannot 'un-freeze' NFT metadata in order to update it.
Freezing metadata can only be performed by holding the METADATA_ROLE
, which you are granted upon deploying your NFT contract.
Smart Contract API
For NFT Collection, Edition and Loyalty Card (ref):
For NFT Drop and Edition Drop (ref):
Changes available at:
- NFT Collection >=
v1.1.0
- Edition >=
v1.2.0
- NFT Drop >=
v4.1.0
- Edition Drop >=
v4.1.0
- Loyalty Card >=
v1.1.0
@thirdweb-dev/contracts
>=v3.10.1
We'll be rolling out SDK and Dashboard support for these features shortly. In the meantime, these features are available to use via the SDK's custom contract API and on the Explorer tab of your contracts' dashboard.