Metadata
The Zora protocol requires media that is minted on its smart contracts contain a URI pointing to its media.
As with the majority of ERC-721 compliant tokens, the Zora protocol assumes that metadata is stored off-chain on a hosted provider. Since the structure of the metadata is completely unenforceable on-chain, this protocol makes no assumption about its structure. Developers are free to use a metadata schema they feel suits their needs best.
In order to allow the Zora community to integrate with your metadata schema, we provide a media metadata schema repository, that can serve as the source of truth for community supported metadata schemas. These schemas are defined as JSON schemas, and generate Types, Parsers, Generators, and Validators that are automatically served through the ZDK.
Generate Metadata
Given a schema version and some unformatted JSON, this method generates a valid, minified, and alphabetized JSON object.
Validate Metadata
Parse Metadata
Define a new Schema
To define a new schema, visit the metadata schema repository and follow the instructions in the README.
Further Reading
Last updated
Was this helpful?