Deep dive into Solana token metadata, SPL token standards, and how to properly structure your token information.
Token metadata is crucial for how your token appears in wallets, explorers, and applications. This guide explains everything you need to know about Solana token metadata and standards.
Token metadata is additional information about your token that includes:
Solana uses the SPL (Solana Program Library) token standard, which defines:
The most widely adopted standard is Metaplex Token Metadata, which includes:
json
{
"name": "My Token",
"symbol": "MTK",
"description": "A description of my token",
"image": "https://example.com/image.png",
"external_url": "https://myproject.com",
"attributes": [
{
"trait_type": "Category",
"value": "Utility"
}
],
"properties": {
"files": [
{
"uri": "https://example.com/image.png",
"type": "image/png"
}
],
"category": "image"
}
}
**On-Chain Metadata**:
**Off-Chain Metadata**:
1. **Use IPFS or Arweave** for permanent storage
2. **Pin your content** to ensure availability
3. **Validate JSON** before uploading
4. **Test URLs** to ensure accessibility
json
{
"name": "Governance Token",
"symbol": "GOV",
"description": "Governance token for DAO voting",
"attributes": [
{
"trait_type": "Type",
"value": "Governance"
},
{
"trait_type": "Voting Power",
"value": "1"
}
]
}
json
{
"name": "Rare Collectible #1",
"symbol": "RARE",
"description": "Limited edition collectible",
"attributes": [
{
"trait_type": "Rarity",
"value": "Legendary"
},
{
"trait_type": "Edition",
"value": "1 of 100"
}
]
}
1. Prepare new metadata
2. Upload to storage
3. Call update instruction
4. Pay transaction fees
Proper metadata is essential for token success. It affects how your token appears across the ecosystem and impacts user experience. Take time to craft quality metadata that accurately represents your project.
Remember: metadata is often the first impression users have of your token, so make it count!