Erc1155 metadata json "properties" vs. "attributes" - which is better?

Hello team -

Would like to get other's long term view on whether using "properties" or "attributes" is better way in your opinion to build your metadata json for ERC1155. On one end, I believe OpenSea is pointing me in the direction of using "attributes", while other documentation points me towards "properties". Thanks.

vs.

I don't know what's best but I would check popular projects and see what they use, and if it's properly displayed in the marketplaces etc.

Continuing the discussion from Erc1155 metadata json "properties" vs. "attributes" - which is better?:

For me personally, when I followed the" attributes" documentation my attributes would not be displayed on the NFT listing.

When I used "properties" formatting, such as:

"properties": {
        "Background": "Black", 
        "Name": "Name", 
        "Coolness level": "100",  
        "Bonus Features": "None"
        }}

The properties showed up. Right now I'm trying to figure out why the percentages aren't showing up, and I think this may have to do with the min/max supply line on the contract.

May experiment with the other property types in the future:
Explained: The 4 NFT Properties OpenSea Supports [frontend descriptions only]

@mintsshovels what did you go for in the end?

I have tried using properties with Opensea, they are correctly displayed under properties, however it seems that Opensea lets you only chose between either properties or attributes, so if you are going to use properties, you wouldn't be able to take advantage of levels, stats, boost and dates, this is my understanding after trying several combinations of both properties and attributes. This despite the fact that OS claims they support the Enjin erc1155 metadata standard.

Has anyone been able to use the erc1155 metadata standard in order to display all of the different trait types such as Levels and Dates..?

I'm still experimenting. I reverted back to:

 "attributes": [
    {
      "trait_type": "trait",
      "value": "value"
    },
    {
      "trait_type": "trait",
      "value": "value"
    },
    {
      "trait_type": "trait",
      "value": "value"
},

And the traits also showed up, my thing is just trying to get the percentages to come up, that's where I'm at right now. Haven't tried the other display variations.

1 Like