Token Standards Explained

The blueprints that power everything from currencies to collectibles!

Ready for the final piece? 🦆 You've learned about blockchain and Ethereum. Now let's discover token standards — the rules that tell smart contracts how to create different types of digital assets. This is where it all comes together!

📐 What Are Token Standards?

Token standards are like blueprints or templates that tell smart contracts how to behave. Think of them as instruction manuals!

🏗️
Building a House
You need blueprints
🍰
Baking a Cake
You need a recipe
🪙
Creating Tokens
You need standards

Standards ensure that all tokens of the same type work the same way, so wallets, exchanges, and other apps know exactly how to handle them!

💵 ERC-20: Digital Dollars

ERC-20 tokens are fungible — meaning each token is identical and interchangeable, just like regular money!

💵
Think: Dollar Bills
Real Dollars:
  • • Every $1 bill has same value
  • • You can exchange any $1 for another
  • • Divisible: 1 dollar = 100 cents
  • • Can be sent to anyone
ERC-20 Tokens:
  • • Every token has same value
  • • You can exchange any token for another
  • • Divisible into smaller pieces
  • • Can be sent to any address

🦆 Examples you might know: USDC (digital dollars), DAI (stable currency), UNI (Uniswap governance), and yes — the KitchenTokens in our tutorial are ERC-20 tokens!

🎨 ERC-721: Unique Trading Cards

ERC-721 tokens are non-fungible (NFTs) — meaning each token is unique and special, just like trading cards or artwork!

🃏
Think: Trading Cards
Trading Cards:
  • • Each card is unique
  • • Different stats and artwork
  • • Can't be divided into pieces
  • • Have different rarities and values
  • • You own the specific card
ERC-721 NFTs:
  • • Each token is unique
  • • Different metadata and traits
  • • Can't be divided into pieces
  • • Have different rarities and values
  • • You own the specific token

🦆 Examples: CryptoKitties (digital cats), Bored Apes (profile pictures), digital art, virtual real estate, and the Dish NFTs you create in our Kitchen tutorial!

🎒 ERC-1155: The Ultimate Backpack

ERC-1155 tokens are multi-tokens — one contract can manage many different types of tokens, both fungible and non-fungible!

🎒
Think: Gaming Inventory
Your Game Backpack Contains:
🪙
Gold Coins
(x 450)
🍄
Health Potions
(x 12)
⚔️
Magic Sword
(x 1)
🏆
Achievement
(x 1)

Some items are stackable (coins, potions), others are unique (sword, achievement)

ERC-1155 is perfect for games, marketplaces, and any situation where you need multiple types of tokens in one place!

🦆 In our Kitchen: The Ingredients contract uses ERC-1155! It manages multiple ingredient types (tomato, cheese, meat) — you can own many of each type, but they're all stored efficiently in one contract.

📊 Quick Comparison

StandardLikeEach TokenBest For
ERC-20💵 Dollar billsIdentical valueCurrencies, governance tokens
ERC-721🃏 Trading cardsUnique & differentArt, collectibles, real estate
ERC-1155🎒 Game inventoryMix of bothGames, multi-asset platforms

🍳 How On-Chain Kitchen Uses All Three!

Our cooking tutorial demonstrates all three token standards working together:

🪙
ERC-20
KitchenTokens
• Currency for buying ingredients
• Claim from faucet
• Spend in the shop
🥕
ERC-1155
Ingredients
• Multiple types in one contract
• Stack identical ingredients
• Burn to create dishes
🍕
ERC-721
Dish NFTs
• Unique recipes and artwork
• Generated based on ingredients
• Truly yours forever

The Journey: Claim tokens (ERC-20) → Buy ingredients (ERC-1155) → Cook dishes (ERC-721)

🦆 You did it! You now understand the three main token standards: ERC-20 (fungible like money), ERC-721 (unique like trading cards), and ERC-1155 (multi-token like game inventories). These are the building blocks of the entire Web3 ecosystem!

Ready to Experience It All? 🎉

Now that you understand the theory, let's see these token standards in action! Experience blockchain by using it in our interactive On-Chain Kitchen.

🍳 Start Cooking with On-Chain Kitchen →