Contract Metadata
Contract Metadata Standards
Contract Metadata
You can set a profile image, banner image, and more. This important information about the collection can be grabbed by any dapp straight from the contract function. Compare this to a contract like ape coin (just an example), which doesn't have the logo available anywhere from the contract! It's really a thing no one did, some do now, but it could be a thing everyone does. It makes sense and is easy to add to a contract. It also gives the owner of the contract more to be creative with.
Contract metadata is something that needs to be added to the standard for all ERC-20 and ERC-721 tokens, in my opinion.
Please use this template below for inspiration when writing contract metadata.
// Contract Metadata Template
{
"name": "",
"description": "",
"platform": "Contract Wizard",
"image": "",
"images": [
"",
"",
""
],
"image_still": "",
"image_small": "",
"image_large": "",
"image_banner": "",
"image_banner_still": "",
"external_url": "",
"external_link": "",
"website": "",
"opensea": "",
"discord": "",
"twitter": "",
"spotify": "",
"soundcloud": "",
"bandcamp": "",
"tidal": "",
"instagram": "",
"fee_recipient": "",
"seller_fee_basis_points": ""
}
Noteworthy Traits
Description
The description of the collection is important because we are naturally curious and want to know more.
Social Media Links
There's a lot of options for links in the template, and you can add any that aren't there. It's meant to be customizable. The social media platforms in the template are:
X
Spotify
SoundCloud
Bandcamp
Tidal
Instagram
Discord
OpenSea
Images
The images array is cool because you might want to provide a bunch of pictures for your contract metadata to have a lot of fun or tell a larger story. There's many reasons you might want to do a little bit of world building.
Resized Images
Resized images are important because you often need a tiny thumbnail or an optimized small version of the image, rather than the original or uncompressed version of the image. Having the different image sizes improves performance tremendously.
It's thinking about the dapp ahead of you.
Available In The Wizard's Library
Every contract made by The Contract Wizard has a "contractURI" function. This is where metadata for the contract lives.
Last updated