Tokens

Loading concept...

๐Ÿช™ Tokens: The Digital Building Blocks of Blockchain

Imagine you have a magical toy factory. This factory can create different types of toys: identical coins for trading, unique collector cards that no one else has, and special combo packs with different items inside. Thatโ€™s exactly what tokens are in the blockchain world!


๐ŸŽฏ What Are Tokens?

Think of tokens like digital stickers on the blockchain. Just like stickers can represent anythingโ€”a gold star, a rare Pokรฉmon, or a concert ticketโ€”tokens represent value, ownership, or access to something.

The Magic Part? The blockchain keeps track of who owns what, so nobody can cheat or steal!


๐Ÿ”ข ERC-20: Fungible Tokens (The Identical Coins)

The Coin Jar Analogy

Imagine you have a jar of identical gold coins. If you give me one coin and I give you a different coin back, you still have the same thingโ€”one gold coin. Theyโ€™re interchangeable.

Thatโ€™s what fungible means: each token is exactly the same as every other token of that type.

Real-Life Examples

  • ๐Ÿ’ต USDT (Tether) - Each USDT equals $1
  • ๐Ÿ”ท LINK (Chainlink) - Used for data services
  • ๐Ÿฆ„ UNI (Uniswap) - Used for trading governance

How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     ERC-20 Token Contract       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Total Supply: 1,000,000 tokens โ”‚
โ”‚                                 โ”‚
โ”‚  Alice: 500 tokens              โ”‚
โ”‚  Bob:   300 tokens              โ”‚
โ”‚  Carol: 200 tokens              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Features:

  • โœ… Every token is identical
  • โœ… Can be divided (like 0.5 tokens)
  • โœ… Easy to trade on exchanges
  • โœ… Perfect for currencies and utility tokens

๐ŸŽจ ERC-721: NFTs (The Unique Collector Cards)

The Art Gallery Analogy

Now imagine each painting in an art gallery. The Mona Lisa is uniqueโ€”thereโ€™s only ONE original. Even if you make a copy, itโ€™s not the same as owning the real thing.

Thatโ€™s what NFTs (Non-Fungible Tokens) are: one-of-a-kind digital items.

Real-Life Examples

  • ๐Ÿ–ผ๏ธ Digital Art - Beepleโ€™s artwork sold for $69 million!
  • ๐Ÿต Bored Ape Yacht Club - Unique cartoon apes
  • ๐ŸŽฎ Game Items - Unique swords or characters
  • ๐Ÿ“œ Digital Deeds - Proof of ownership for houses

How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     ERC-721 NFT Collection      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Token #1: Blue Dragon          โ”‚
โ”‚    Owner: Alice                 โ”‚
โ”‚                                 โ”‚
โ”‚  Token #2: Red Phoenix          โ”‚
โ”‚    Owner: Bob                   โ”‚
โ”‚                                 โ”‚
โ”‚  Token #3: Golden Unicorn       โ”‚
โ”‚    Owner: Carol                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Features:

  • โœ… Each token has a unique ID
  • โœ… Cannot be divided (you canโ€™t own half an NFT)
  • โœ… Proves authentic ownership
  • โœ… Perfect for collectibles and unique assets

๐ŸŽ ERC-1155: Multi-Token (The Combo Pack)

The Game Inventory Analogy

Picture a video game inventory where you have:

  • 50 health potions (all identical)
  • 1 legendary sword (unique)
  • 20 gold coins (all identical)

ERC-1155 is the Swiss Army knife of tokensโ€”it handles BOTH fungible AND non-fungible tokens in ONE smart contract!

Why Is This Amazing?

Before ERC-1155, game developers needed:

  • One contract for gold coins (ERC-20)
  • Another contract for unique weapons (ERC-721)
  • Another contract for potions (ERC-20)

Now they need just ONE contract for everything!

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚       ERC-1155 Game Inventory       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  ID #1: Health Potion (Fungible)    โ”‚
โ”‚    Alice: 50, Bob: 30               โ”‚
โ”‚                                     โ”‚
โ”‚  ID #2: Legendary Sword (Unique)    โ”‚
โ”‚    Owner: Alice                     โ”‚
โ”‚                                     โ”‚
โ”‚  ID #3: Gold Coin (Fungible)        โ”‚
โ”‚    Alice: 1000, Bob: 500            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Features:

  • โœ… Mix of fungible + non-fungible
  • โœ… Batch transfers (send many items at once)
  • โœ… Lower gas fees (cheaper transactions)
  • โœ… Perfect for games and complex systems

๐Ÿ“ค Token Transfers: Sending Digital Goodies

The Digital Mail Analogy

Sending a token is like sending a letter. You need:

  1. Your address (the sender)
  2. Their address (the receiver)
  3. What youโ€™re sending (amount or token ID)

How a Transfer Works

graph TD A[Alice has 100 tokens] --> B{Transfer 30 to Bob} B --> C[Alice now has 70 tokens] B --> D[Bob receives 30 tokens] D --> E[Recorded forever on blockchain]

Different Transfer Types

Token Type Whatโ€™s Sent Example
ERC-20 Amount โ€œSend 50 USDTโ€
ERC-721 Token ID โ€œSend NFT #42โ€
ERC-1155 ID + Amount โ€œSend 5 of item #3โ€

Important: Once sent, you canโ€™t undo it! Double-check addresses!


โš’๏ธ Token Minting: Creating New Tokens

The Cookie Factory Analogy

Minting is like baking cookies. The baker (contract owner) creates new cookies and puts them into circulation.

When Minting Happens

  • ๐ŸŽฎ Games: New items appear when you complete quests
  • ๐Ÿ–ผ๏ธ Art: Artist creates a new NFT to sell
  • ๐Ÿ’ฐ DeFi: New reward tokens are generated

The Minting Process

graph TD A[Creator calls mint function] --> B[New tokens created] B --> C[Tokens added to receiver's balance] C --> D[Total supply increases]

Example:

  • Before minting: Total supply = 1,000 tokens
  • Mint 100 new tokens to Alice
  • After minting: Total supply = 1,100 tokens
  • Aliceโ€™s balance: +100 tokens

๐Ÿ”ฅ Token Burning: Destroying Tokens Forever

The Paper Shredder Analogy

Burning tokens is like putting paper through a shredderโ€”once itโ€™s done, those tokens are gone forever. Nobody can use them again.

Why Burn Tokens?

Reason Example
๐Ÿ“‰ Reduce supply Make remaining tokens more valuable
๐ŸŽซ Redeem tickets Burn token to claim a physical item
๐ŸŽฎ Upgrade items Burn old sword to get legendary sword
๐Ÿงน Clean up Remove spam or unwanted tokens

The Burning Process

graph TD A[User calls burn function] --> B[Tokens removed from balance] B --> C[Tokens sent to dead address] C --> D[Total supply decreases]

Example:

  • Before burning: Total supply = 10,000 tokens
  • Burn 500 tokens
  • After burning: Total supply = 9,500 tokens
  • Those 500 tokens? Gone forever!

๐Ÿ“‹ Token Metadata: The Information Tag

The Product Label Analogy

Every product has a label with information. Token metadata is like that labelโ€”it tells you everything about the token!

What Metadata Contains

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚       NFT #42 Metadata          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Name: "Cosmic Dragon"          โ”‚
โ”‚  Description: "A rare dragon    โ”‚
โ”‚   from the cosmic realm"        โ”‚
โ”‚  Image: ipfs://Qm...xyz         โ”‚
โ”‚  Attributes:                    โ”‚
โ”‚    - Power: 95                  โ”‚
โ”‚    - Rarity: Legendary          โ”‚
โ”‚    - Element: Fire              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Where Is Metadata Stored?

Location Pros Cons
On-chain Permanent, secure Expensive
IPFS Decentralized, cheap Needs gateway
Web server Easy, flexible Centralized

Metadata URI

Every ERC-721 and ERC-1155 token has a tokenURI that points to its metadata:

Token #1 โ†’ ipfs://Qm.../1.json
Token #2 โ†’ ipfs://Qm.../2.json
Token #3 โ†’ ipfs://Qm.../3.json

๐ŸŽฏ Quick Comparison: Which Token Type to Use?

graph TD A[What do you need?] --> B{Are all items identical?} B -->|Yes| C[ERC-20] B -->|No| D{Is each item unique?} D -->|Yes| E[ERC-721] D -->|Mixed| F[ERC-1155]
Feature ERC-20 ERC-721 ERC-1155
Identical tokens โœ… โŒ โœ…
Unique tokens โŒ โœ… โœ…
Divisible โœ… โŒ โœ…
Batch transfer โŒ โŒ โœ…
Best for Currencies Collectibles Games

๐ŸŒŸ Summary: Your Token Toolkit

๐Ÿ”ข ERC-20 = Identical, divisible coins (like digital dollars)

๐ŸŽจ ERC-721 = Unique, one-of-a-kind items (like digital art)

๐ŸŽ ERC-1155 = Best of both worlds (like game inventories)

๐Ÿ“ค Transfers = Sending tokens from one wallet to another

โš’๏ธ Minting = Creating new tokens (adding to supply)

๐Ÿ”ฅ Burning = Destroying tokens forever (reducing supply)

๐Ÿ“‹ Metadata = The information label describing each token


Now you understand the building blocks of the token world! Whether itโ€™s digital money, unique art, or game itemsโ€”tokens make it all possible on the blockchain. ๐Ÿš€

Loading story...

No Story Available

This concept doesn't have a story yet.

Story Preview

Story - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

Interactive Preview

Interactive - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

No Interactive Content

This concept doesn't have interactive content yet.

Cheatsheet Preview

Cheatsheet - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

No Cheatsheet Available

This concept doesn't have a cheatsheet yet.

Quiz Preview

Quiz - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

No Quiz Available

This concept doesn't have a quiz yet.