# Metadata structure

<figure><img src="https://2351247042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QQIPimQeOGE3C1HbWxf%2Fuploads%2FtFzqupdMev8NQy3nJaEt%2Fgaming.png?alt=media&#x26;token=59d05078-b7b6-4853-b068-cbc1331ca0d0" alt=""><figcaption></figcaption></figure>

## To have better understanding metapro protocol flow 🛠️

<img src="https://2351247042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QQIPimQeOGE3C1HbWxf%2Fuploads%2Fd3BYcERL9IENVMBd5CDS%2Ffile.excalidraw.svg?alt=media&#x26;token=6e2fc513-1968-4fda-a6f5-72e440c91b1a" alt="" class="gitbook-drawing">

<details>

<summary>How to read all data about Token ?</summary>

To get access to data about token You need to follow these steps:

* Enter [BSC Scan](https://bscscan.com/address/0xa293D68684Be29540838Dc8A0222De0c43c6b5B4#readContract)

* In BNB Smart Chain Explorer find MetaproMetaAsset Contract **`0xa293D68684Be29540838Dc8A0222De0c43c6b5B4`**

* Click on Contract and Read Contract

  <figure><img src="https://2351247042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QQIPimQeOGE3C1HbWxf%2Fuploads%2FiqUjaXsKAw5WH4HuMlsY%2FRead%20Contract%20MetaproMetaAsset.png?alt=media&#x26;token=94a8bf06-bbec-4e50-bd6c-5c17ca16476a" alt=""><figcaption><p>View of contract on BSC Scan</p></figcaption></figure>

* In this tab we have all methods which we can read from MetaproMetaAsset Contract

* Last method calls "uri" which get data about token.&#x20;

  <figure><img src="https://2351247042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QQIPimQeOGE3C1HbWxf%2Fuploads%2FognbJ19sRRiVTooClrLj%2FURI%20reponse%20MetaproMetaAsset.png?alt=media&#x26;token=91b6a02c-70b6-4b16-9f23-d6fb938229c1" alt=""><figcaption><p>Method called "uri" where you can insert TokenId</p></figcaption></figure>

* Copy link from response and paste it on new browser tab&#x20;

  <figure><img src="https://2351247042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QQIPimQeOGE3C1HbWxf%2Fuploads%2FJQA5XNwxRdzM97jZeT8y%2FExample%20of%20json%20reponse.png?alt=media&#x26;token=442ee6da-fdeb-4f0f-a88c-f598ec3b41f4" alt=""><figcaption><p>Example of JSON response with all data about token</p></figcaption></figure>

⚠️ Hint : If you want to have parsed data like on picture above it needs JSON formatter extension installed on browser

</details>

<details>

<summary>How to read metadata ?</summary>

Follow steps on [#how-to-read-all-data-about-token](#how-to-read-all-data-about-token "mention")&#x20;

* Metadata response&#x20;

  <figure><img src="https://2351247042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QQIPimQeOGE3C1HbWxf%2Fuploads%2FFpgF5vSbsn0nBQHle1Bm%2FExample%20of%20metadata.png?alt=media&#x26;token=23ce1f22-ec6c-40b3-87e9-e27bdd387831" alt=""><figcaption><p>Example response of token</p></figcaption></figure>

&#x20;You can get detailed informations with description of each key type here : [#nft-properties-scheme](#nft-properties-scheme "mention")

</details>

## &#x20;NFT Properties scheme  📒

<table><thead><tr><th width="205">Key</th><th>Value Type</th><th width="120">Required</th><th>Description</th></tr></thead><tbody><tr><td>asset_category</td><td>string</td><td>true</td><td>NFT category</td></tr><tr><td>asset_category_ids</td><td>integerArray</td><td>false</td><td>List of ids from database</td></tr><tr><td>asset_subcategories</td><td>stringArray</td><td>false</td><td>NFT subcategories</td></tr><tr><td>asset_tags</td><td>stringArray</td><td>false</td><td>NFT tags</td></tr><tr><td>asset_tag_ids</td><td>integerArray</td><td>false</td><td>List of Ids from database</td></tr><tr><td>asset_geometry</td><td>string (dictionary)</td><td>false</td><td><p>Polygonal Quads only</p><p>Polygonal Quads/ Tris</p><p>Polygonal Tris only</p><p>Polygonal Ngons</p><p>Polygonal, Subdivision</p><p>Nurbs</p><p>Unknown</p><p>null</p></td></tr><tr><td>asset_polygons</td><td>intiger</td><td>false</td><td>Number of polygons</td></tr><tr><td>asset_verticles</td><td>intiger</td><td>false</td><td>Number of verticles</td></tr><tr><td>asset_materials</td><td>boolean</td><td>false</td><td>If the files contain materials</td></tr><tr><td>asset_textures</td><td>boolean</td><td>false</td><td>If the files contain textures</td></tr><tr><td>asset_uv_mapped</td><td>boolean</td><td>false</td><td>If the files are uv mapped</td></tr><tr><td>asset_animated</td><td>boolean</td><td>false</td><td>If the files contain animations</td></tr><tr><td>asset_width</td><td>intiger</td><td>false</td><td>First input of resolution</td></tr><tr><td>asset_height</td><td>intiger</td><td>false</td><td>Second input of resolution</td></tr><tr><td>asset_layers</td><td>boolean</td><td>false</td><td>Yes/ No</td></tr><tr><td>asset_bpm</td><td>intiger</td><td>false</td><td>Given range</td></tr><tr><td>asset_sample_rate</td><td>string (dictionary)</td><td>false</td><td><p>44.1 kHz</p><p>48 kHz<br>null</p></td></tr><tr><td>asset_bit_depth</td><td>intiger</td><td>false</td><td>Given range</td></tr><tr><td>asset_channels</td><td>string (dictionary)</td><td>false</td><td><p>Stereo</p><p>Mono</p><p>null</p></td></tr><tr><td>asset_duration</td><td>string</td><td>false</td><td>hh:mm:ss</td></tr><tr><td>asset_licence</td><td>string (dictionary)</td><td>true</td><td><p>Royalty Free (RF)</p><p>Rights Managed (RM)</p><p>Creative Commons (CC)</p></td></tr><tr><td>asset_restriction</td><td>string (dictionary)</td><td>true</td><td><p>Public meta asset</p><p>Restricted meta asset</p></td></tr><tr><td>asset_type</td><td>string [array]</td><td>true</td><td><p>an array with possible values:</p><p>3d meta asset</p><p>2d meta asset</p><p>sound meta asset</p></td></tr></tbody></table>

## NFT Properties JSON ⚙️

```json
{
   "description":"Description of token",
   "image":"Direct link to storage",
   "extraFiles":[
      "https://resource-link.com",
      "https://resource-link2.com",
      "https://resource-link3.com"
   ],
   "minifiedImage":"Direct link to storage where image is with extension avif or webp",
   "name":"Token Name",
   "properties":{
      "item_experiance":[
         {
            "key":"game_score",
            "value":"xxxxxx",
            "value_type":"xxxxxx"
         }
      ],
      "common":{
         "standard":[
            {
               "key":"asset_licence",
               "value":"Royalty Free (RF)",
               "value_type":"string"
            },
            {
               "key":"asset_restriction",
               "value":"Public meta asset",
               "value_type":"string"
            },
            {
               "key":"asset_type",
               "value":[
                  "2d meta asset",
                  "Sound meta asset"
               ],
               "value_type":"string array"
            },
            {
               "key":"asset_tags",
               "value":[
                  "metaverse",
                  "abstract"
               ],
               "value_type":"string array"
            },
            {
               "key":"asset_tag_ids",
               "value":[
                  12,
                  44
               ],
               "value_type":"integer array"
            },
            {
               "key":"asset_category",
               "value":"Other",
               "value_type":"string"
            },
            {
               "key":"asset_subcategories",
               "value":[
                  
               ],
               "value_type":"string array"
            },
            {
               "key":"asset_category_ids",
               "value":[
                  37
               ],
               "value_type":"integer array"
            }
         ],
         "2d_spec":[
            {
               "key":"asset_width",
               "value":474,
               "value_type":"integer"
            },
            {
               "key":"asset_height",
               "value":238,
               "value_type":"integer"
            },
            {
               "key":"asset_layers",
               "value":true,
               "value_type":"boolean"
            }
         ],
         "3d_spec":[
            {
               "key":"asset_geometry",
               "value":"Polygonal Quads/Tris",
               "value_type":"string"
            },
            {
               "key":"asset_polygons",
               "value":47494,
               "value_type":"integer"
            },
            {
               "key":"asset_vertices",
               "value":23854,
               "value_type":"integer"
            },
            {
               "key":"asset_materials",
               "value":true,
               "value_type":"boolean"
            },
            {
               "key":"asset_textures",
               "value":false,
               "value_type":"boolean"
            },
            {
               "key":"asset_uv_mapped",
               "value":false,
               "value_type":"boolean"
            },
            {
               "key":"asset_animated",
               "value":false,
               "value_type":"boolean"
            }
         ],
         "sound spec":[
            {
               "key":"asset_bpm",
               "value":50,
               "value_type":"integer"
            },
            {
               "key":"asset_sample_rate",
               "value":"44.1 kHz",
               "value_type":"string"
            },
            {
               "key":"asset_bit_depth",
               "value":16,
               "value_type":"integer"
            },
            {
               "key":"asset_channels",
               "value":"Stereo",
               "value_type":"string"
            },
            {
               "key":"asset_duration",
               "value":"01:00:15",
               "value_type":"string"
            },
            {
               "key":"asset_isrc_code",
               "value":"AA6Q72000047",
               "value_type":"string"
            },
            {
               "key":"asset_isvc_code",
               "value":"AA6Q72000047",
               "value_type":"string"
            }
         ]
      }
   }
}
```
