list indices must be integers or slices, not str #338
-
After entering this code Please find the extract of the metadata file used: [
{
"name": "Melonfruitz #1",
"description": "WaterMelon Fruitz NFT Collections",
"image": "C:/Program Files/Python310/hashlips_art_engine-1.1.2_patch_v6/build/images/1.png",
"dna": "dd23256eede64b0ff388b21c494192a581f1bd61",
"edition": 1,
"date": 1655307110665,
"attributes": [
{
"trait_type": "Background",
"value": "Lemon gradient"
},
{
"trait_type": "Ear",
"value": "Plain ear"
},
{
"trait_type": "Hand",
"value": "Muscle hand"
},
{
"trait_type": "Leg",
"value": "Styled leg"
},
{
"trait_type": "Base",
"value": "Body"
},
{
"trait_type": "Eyes",
"value": "Rounded eyes"
},
{
"trait_type": "Nose",
"value": "Green nose"
},
{
"trait_type": "Lip",
"value": "Brown lip and tongue"
}
],
"compiler": "HashLips Art Engine",
"levels": "",
"stats": "",
"unlockable_content": [
false,
""
],
"explicit_and_sensitive_content": "",
"supply": 1,
"blockchain": "Polygon",
"sale_type": "",
"price": 0.035,
"method": "",
"duration": "6 months",
"specific_buyer": "",
"quantity": 1
},
// etc.
] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, the metadata file structure is incorrect. It should follow the structure of the examples files. It is explained and detailed here. If it seems too complicated for you, you can watch this video which explains the steps from HashLips to the structure above. Otherwise, you can go through an offer on my Fiverr. Here is an example of what should be the first NFT of your metadata file: {
"nft": [
{
"file_path": "C:/Program Files/Python310/hashlips_art_engine-1.1.2_patch_v6/build/images/1.png",
"external_link": "",
"nft_name": "Melonfruitz #1",
"collection": "",
"description": "WaterMelon Fruitz NFT Collections",
"properties": [
{
"type": "Background",
"value": "Lemon gradient"
},
{
"type": "Ear",
"value": "Plain ear"
},
{
"type": "Hand",
"value": "Muscle hand"
},
{
"type": "Leg",
"value": "Styled leg"
},
{
"type": "Base",
"value": "Body"
},
{
"type": "Eyes",
"value": "Rounded eyes"
},
{
"type": "Nose",
"value": "Green nose"
},
{
"type": "Lip",
"value": "Brown lip and tongue"
}
],
"levels": "",
"stats": "",
"unlockable_content": [
false,
""
],
"explicit_and_sensitive_content": "",
"supply": 1,
"blockchain": "Polygon",
"sale_type": "",
"price": 0.035,
"method": "",
"duration": "6 months",
"specific_buyer": "",
"quantity": 1
}
]
} Note: I have arranged this issue so that it can be read as a documentation. 🙂 |
Beta Was this translation helpful? Give feedback.
Hi, the metadata file structure is incorrect. It should follow the structure of the examples files. It is explained and detailed here.
If it seems too complicated for you, you can watch this video which explains the steps from HashLips to the structure above. Otherwise, you can go through an offer on my Fiverr.
Here is an example of what should be the first NFT of your metadata file: