Skip to main content

Metadata Guide

📋 Overview​

This guide explains how to generate and use metadata for Innovation City Digital License NFTs. The metadata follows OpenSea standards and includes comprehensive business license information.

🎯 Metadata Structure​

Example Metadata​

{
"name": "Standard Company - 0701013",
"creator": "RAK DAO",
"description": "An official, non-transferable business license issued by the RAK DAO. This specific credential, License Number 0701013, is held by Saurabh Limited. It serves as a verifiable, on-chain proof of licensure.",
"image": "https://indigo-many-gecko-585.mypinata.cloud/ipfs/bafybeifgf67kdirmuucjai7dxqle6gwab2xvyshnmgztwxcmc3kpz2akpm",
"external_url": "https://innovationcity.com/",
"background_color": "FFFFFF",
"type": "image/jpeg",
"attributes": [
{
"trait_type": "License Type",
"value": "Standard Company"
},
{
"trait_type": "Identifier",
"value": "0701013"
},
{
"trait_type": "Holder Name",
"value": "Saurabh Limited"
},
{
"trait_type": "Issue Date",
"value": 1721865600,
"display_type": "date"
},
{
"trait_type": "Expiry Date",
"value": 1787184000,
"display_type": "date"
},
{
"trait_type": "Status",
"value": "Active"
},
{
"trait_type": "Activity Name",
"value": "Cost Control & Risk Management Services"
},
{
"trait_type": "Legal Type",
"value": "Company Limited by Shares"
}
]
}

🔧 Metadata Fields​

Required Fields​

FieldTypeDescriptionExample
namestringLicense display name"Standard Company - 0701013"
descriptionstringLicense description"An official, non-transferable business license..."
imagestringLicense image URL"https://ipfs.io/ipfs/..."
attributesarrayLicense attributesSee attributes section

Optional Fields​

FieldTypeDescriptionExample
creatorstringLicense issuer"RAK DAO"
external_urlstringExternal website"https://innovationcity.com/"
background_colorstringBackground color"FFFFFF"
typestringImage type"image/jpeg"

📊 Attributes Structure​

Required Attributes​

{
"trait_type": "License Type",
"value": "Standard Company"
},
{
"trait_type": "Identifier",
"value": "0701013"
},
{
"trait_type": "Holder Name",
"value": "Saurabh Limited"
},
{
"trait_type": "Status",
"value": "Active"
}

Date Attributes​

{
"trait_type": "Issue Date",
"value": 1721865600,
"display_type": "date"
},
{
"trait_type": "Expiry Date",
"value": 1787184000,
"display_type": "date"
}

Business Attributes​

{
"trait_type": "Activity Name",
"value": "Cost Control & Risk Management Services"
},
{
"trait_type": "Legal Type",
"value": "Company Limited by Shares"
}
// Mint with metadata URI
function safeMint(
address to,
string calldata uri, // Points to metadata JSON
uint64 expiryTs
) external onlyRole(MINTER_ROLE) returns (uint256) {
// ... minting logic
}

This metadata guide ensures Innovation City Digital Licenses are properly displayed and managed across all platforms while maintaining security and professional standards.