Metadata Validator
Last updated
Last updated
The Metadata Validator is built to check your NFT metadata against the HIP-412 (NFT Token Metadata JSON Schema v2) standards, ensuring proper representation. You can validate metadata by uploading a CSV file, a single JSON file, or a zip file containing multiple JSON files. The tool identifies errors or missing fields, allowing for easy corrections and ensuring compliance with standards. This tutorial will guide you through uploading, validating, and correcting your NFT metadata for seamless compliance.
Download the example files. These files contain sample NFT metadata in various formats (zip, JSON, CSV) and will help you understand how to use the tool to validate your metadata.
If you're validating JSON metadata, drag the zip file with the JSON files into the "upload a file" drop area. Once the zip file is successfully uploaded, the tool will process all the JSON files included in it.
Alternatively, you can upload the example CSV file downloaded earlier. If you are unfamiliar with JSON, using a CSV file can be a simpler way to format your metadata. When you upload the CSV file, the tool provides an option to convert the CSV into JSON files, which is the standard format for NFT metadata. This feature helps you create valid JSON files to use with your NFTs.
After processing, the tool will return a list of the validation results for each NFT in the file (see the above image in Step 2). It will indicate whether the metadata passes or fails the HIP-412 standards tests.
If an NFT fails validation, you can download an error log for a complete list of validation errors.
Or click the Details link to see the specific errors for each NFT in the validation results list. For example, in the video demo, one NFT fails validation due to a missing "type" field and an absent "image" field. You will use these results to correct the errors in your NFT's metadata in the next step.
Before proceeding with your NFTs, ensure all required fields are present and meet the HIP-412 standards. Open the CSV file, update the missing "type" and "image" fields, and save the file. Upload your updated metadata file to the validator tool to confirm that the errors have been resolved.