Collection Metadata
Data about your collection
On Flow, metadata doesn't exclusively exist on NFTs. They can also exist on the contract itself by implementing the ViewResolver interface. Flowty expects the following metadata to exist on the contract level:
NFTCollectionData: How do I store, send, or withdraw from this collection?
NFTCollectionDisplay: How should a collection be shown?
ExternalURL (Optional): A backlink to a collection's native website/app
If you came here from an earlier section, you might recall that NFTs themselves can also specify NFTCollectionData and NFTCollectionDisplay. While it is valid to define each of them on the NFT, contract-level metadata takes precedence and is the recommended location to implement these views.
In order to ensure consistency and maximum capability with other products on Flow, we recommend that NFTs on your collection also use your contract-level resolver. You can find an example of this in our Avataaars contract here, and below:
Last updated