Tokens & NFTs

Blockchain & Web3 Fundamentals
Course 1 · Chapter 8 · Tokens & NFTs: Fungible vs. Non-Fungible

Chapter 6 introduced Ethereum's Contract Accounts — accounts controlled by code instead of a private key. This chapter looks at the single most common thing that code is actually used for: creating tokens, both the everyday fungible kind and the unique, non-fungible kind (NFTs) that made real, worldwide headlines in 2021.

Fungible vs. Non-Fungible, Precisely

Fungible means interchangeable: any one unit is identical in value and function to any other unit of the same type. A £10 note is fungible — you don't care which specific £10 note you receive in change, since they're all equally good. ETH and BTC are both fungible in exactly this sense: 1 ETH is always worth exactly 1 ETH, regardless of which specific 1 ETH it is.

Non-fungible means the opposite: each unit is unique and not directly interchangeable with another, even of the "same" type. A specific house, a specific piece of original art, or a specific collectible card is non-fungible — substituting a different one, even a similar-looking one, genuinely isn't the same thing.

ERC-20: The Real Standard Behind Fungible Tokens

A "token" on Ethereum isn't some separate kind of blockchain object — it's simply a smart contract (Chapter 6) that keeps track of balances internally and implements a shared, standardized set of functions so every wallet, exchange, and application can interact with it the same way. The real, foundational standard for fungible tokens is ERC-20, proposed by Fabian Vogelsteller in November 2015.

ERC-20 defines a common interface — functions like checking an account's token balance, transferring tokens between accounts, and reporting the token's total supply — that any compliant contract implements. Because the interface is standardized, a wallet or exchange only has to understand ERC-20 once to work with literally thousands of genuinely different tokens built on top of it, from stablecoins to governance tokens issued by decentralized projects. This single, shared standard is a large part of why Ethereum's own token ecosystem grew as large and interoperable as it did.

ERC-721: The Real Standard Behind NFTs

Non-fungible tokens needed a genuinely different standard, since ERC-20's whole design assumes every unit is identical and interchangeable. ERC-721, authored by William Entriken, Dieter Shirley, Jacob Evans, and Nastassia Sachs, was formally published in 2018, though its development began in 2017 — directly motivated by one specific, real, and genuinely famous project.

Late 2017
CryptoKitties, a game built around breeding and trading unique, individually distinct digital cats, launches and becomes an early, real-world demonstration of what a non-fungible token could be. It's credited with pioneering ERC-721's own real-world use.
Peak demand
CryptoKitties' own popularity became so large that it consumed, at its documented peak, up to 70% of Ethereum's entire network usage capacity — genuinely congesting the network for everyone else, a real early demonstration of the scaling limitations Chapter 9 covers in depth.
2018
ERC-721 is formally published as a standard, generalizing the pattern CryptoKitties had already proven out.

What an NFT Actually Stores On-Chain

A genuinely common misconception is that an NFT is the digital image, video, or other media itself, stored directly on the blockchain. In practice, this usually isn't true. What an ERC-721 contract actually stores on-chain, per token, is:

  • a unique token ID;
  • the current owner's address; and
  • typically a URI — essentially a link — pointing to off-chain metadata describing the token, which usually includes a further link to the actual media file itself.
On-chain: token #4392, owner 0xA1b2..., metadata URI → points to → Off-chain: JSON metadata (name, description, image link)
→ which itself points to → Off-chain: the actual image/video file (often on a server, or IPFS)
A Real, Honest Consequence of This Design Because the actual media file usually lives off-chain, owning an NFT doesn't automatically guarantee the underlying image or file will remain accessible forever — if the off-chain server or storage hosting it ever goes down permanently, the on-chain token still exists (the ownership record itself is genuinely secure and unaffected), but the link it points to can break. Some projects mitigate this by storing metadata and media on IPFS (a distributed, content-addressed storage system) rather than a single centralized server, though even that isn't an automatic guarantee of permanence without someone continuing to host the data.

A Real, Concrete Landmark: Beeple at Christie's

NFTs moved from a niche, technical curiosity to mainstream global news in March 2021, when digital artist Beeple's work "Everydays: The First 5000 Days" sold at Christie's — one of the world's oldest and most established fine art auction houses — for a real, documented $69.3 million, paid in 42,329 ETH. This remains, at time of writing, the most expensive NFT sale ever recorded, and a genuinely significant real moment for NFTs entering mainstream cultural and financial conversation far beyond the crypto community itself.

One More Real Standard Worth Knowing: ERC-1155 A later real standard, ERC-1155 (developed by the Enjin team), lets a single smart contract manage both fungible and non-fungible tokens together — useful, for example, in a game that needs both interchangeable in-game currency and unique collectible items within one contract, rather than deploying a separate ERC-20 contract and a separate ERC-721 contract for each.
StandardWhat It's ForReal Origin
ERC-20 Fungible tokens (identical, interchangeable units) Fabian Vogelsteller, November 2015
ERC-721 Non-fungible tokens (unique, non-interchangeable units) Entriken, Shirley, Evans & Sachs, published 2018, motivated by CryptoKitties (2017)
ERC-1155 A single contract managing both fungible and non-fungible tokens together Developed by Enjin

Hands-On Exercises

Three exercises reinforcing the fungible/non-fungible distinction and what an NFT actually stores, before Chapter 9 turns to the scaling problem CryptoKitties itself first exposed at real, network-wide scale.

Exercise 1
Classify each of the following as fungible or non-fungible, and briefly justify each answer: a £5 note, a signed first-edition book, a share of a publicly traded company, and a specific seat number for a specific concert.
Exercise 2
A friend buys an NFT and says: "I now own this image file, and it's permanently stored on the blockchain forever." Using this chapter's own explanation of what ERC-721 actually stores on-chain, correct this claim.
Exercise 3
Explain why CryptoKitties consuming up to 70% of Ethereum's network capacity is directly relevant to a topic Chapter 9 hasn't covered yet — what real, practical problem does this event foreshadow?

Quick Reference

  • Fungible — interchangeable units, all equally valuable (ETH, BTC, most currencies).
  • Non-fungible — unique, non-interchangeable units.
  • ERC-20 — the real, standard fungible-token interface, proposed by Fabian Vogelsteller in November 2015.
  • ERC-721 — the real NFT standard, published 2018, directly motivated by CryptoKitties (late 2017), which at its peak used up to 70% of Ethereum's network capacity.
  • What an NFT stores on-chain — a token ID, an owner address, and typically a URI pointing to off-chain metadata/media, not the media file itself.
  • ERC-1155 — a real standard (Enjin) letting one contract manage both fungible and non-fungible tokens together.
  • Beeple at Christie's — "Everydays: The First 5000 Days" sold for $69.3 million (42,329 ETH) in March 2021, the most expensive NFT sale on record.