NFT metadata structure

Is there any way we can get an update that makes the meta data more like hashlips meta data.

Currently the meta date that is generated is very bad.
{“dna”:“0101060503406”,“name”:"#549",“description”:“MiniGuineas”,

"image":"https://ipfs.moralis.io:2053/ipfs/QmRVPPDiZwQWZbLdgxygEQLCpznahr5ADeThTnaXsC5V7t/images/0000000000000000000000000000000000000000000000000000000000000549.png",

"edition":549,"date":1637123816441,"attributes":[

{"name":"Green#21.8","rarity":"original"},

{"name":"Albino#4","rarity":"original"},

{"name":"Glasses#6","rarity":"original"},

{"name":"Goatee#10","rarity":"original"},

{"name":"TinfoilHat#1","rarity":"original"},

{"name":"Guitar#1","rarity":"original"}]}

Moralis doesn’t generate any metadata
Moralis gives you the metadata that is already onchain
The projects decide how they structure their metadata

Moralis just fetches it

1 Like

im talking about this Generate NFTs with this simple code (this could make you millions) PART 1 - YouTube

GitHub - ashbeech/moralis-mutants-nft-engine: Moralis Generative Art NFT Engine

How can we get metadata cleaner like hashlips.

What do you actually want to do to the metadata?

Do you just want it formatted so it is all spaced out?

There are IDE plugins for your Dev Environment that do that.

There is one called Prettify JSON for VS Code.
https://marketplace.visualstudio.com/items?itemName=mohsen1.prettify-json

{
    "dna": "0101060503406",
    "name": "#549",
    "description": "MiniGuineas",
    "image": "https://ipfs.moralis.io:2053/ipfs/QmRVPPDiZwQWZbLdgxygEQLCpznahr5ADeThTnaXsC5V7t/images/0000000000000000000000000000000000000000000000000000000000000549.png",
    "edition": 549,
    "date": 1637123816441,
    "attributes": [
        {
            "name": "Green#21.8",
            "rarity": "original"
        },
        {
            "name": "Albino#4",
            "rarity": "original"
        },
        {
            "name": "Glasses#6",
            "rarity": "original"
        },
        {
            "name": "Goatee#10",
            "rarity": "original"
        },
        {
            "name": "TinfoilHat#1",
            "rarity": "original"
        },
        {
            "name": "Guitar#1",
            "rarity": "original"
        }
    ]
}

I need it to look like this. The trait type and to get rid of the rarity #.

it should be possible to create this type of metadata, I don’t know the exact code that you need to modify.

well thats dosent help me lol

You know how to generate a json file?

Something like this.

var uploadMetadata = async (imageURL) => {
        const metaData = {
            "name": tokenName,
            "image": imageURL,
            "description": tokenDescription
        }
        const file = new Moralis.File("file.json", {base64 : btoa(JSON.stringify(metaData, null, 4))});
        await file.saveIPFS();
        return file.ipfs();
    }

This creates a file and called “file.json” but you could call it 1.json or 2.json depending on the tokenID.

This is where you create the metadata.

 const metaData = {
            "trait_type": value,
            "trait_value": value,
            "add_what_you_want_next" : value,
            "sameagain" : value
        }