URI JSON Schema
Last updated
Was this helpful?
Last updated
Was this helpful?
To display off-chain metadata of SPL tokens, the on-chain struct needs to contain a uri
as described above, allowing Solflare to find it.
Solflare uses the JSON standard as described in the .
Solflare also supports additional optional fields, such as the attributes
field, as described in the OpenSea NFT Standard.
You can use the file below as a reference.
For the fields that match the on-chain metadata, on-chain information has priority.
description
- Human readable description of the asset.
image
- URL to the image of the asset. PNG, GIF, and JPG file formats are supported. You may use the ?ext={file_extension}
query to provide information on the file type.
animation_url
- URL to a multi-media attachment of the asset. The supported file formats are MP4 and MOV for video, MP3, FLAC, and WAV for audio, and GLB for AR/3D assets. You may use the ?ext={file_extension}
query to provide information on the file type.
external_url
- URL to an external application or website where users can also view the asset.
properties.category
- Supported categories:
"image"
- PNG, GIF, JPG
"video"
- MP4, MOV
"audio"
- MP3, FLAC, WAV
"vr"
- 3D models; GLB, GLTF
properties.files
- Object array, where an object should contain the uri
and type
of the file that is part of the asset. The type should match the file extension. The array will also include files specified in image
and animation_url
fields, and any other that is associated with the asset.
You may use the ?ext={file_extension}
query to provide information on the file type.
attributes
- Object array, where an object should contain trait_type
and value
fields. value
can be a string or a number.