Lesson 6 — Smart Contracts, DeFi, NFTs
How Does Blockchain Actually Work?
Learning Material
1 pagesLesson 6 — Smart Contracts, DeFi, NFTs
Understanding the Complex: How Does Blockchain Actually Work?
In late 2013, a nineteen-year-old named Vitalik Buterin published a white paper describing something that didn't exist yet: a blockchain that could run arbitrary programs.
Bitcoin, Buterin argued, was like a pocket calculator — capable of one specific operation (value transfer) done very well. What he wanted to build was more like a general-purpose computer: a blockchain that could execute any program, written in any logic, enforced by the same distributed consensus that secured the ledger itself.
He called the programs "smart contracts." The platform became Ethereum.
What a smart contract actually is
A smart contract is a program — code, stored on the blockchain — that executes automatically when predefined conditions are met, without requiring any party to actively run it or intervene.
The simplest version: an escrow. Alice and Bob want to trade — Alice will send payment, Bob will send goods. Normally this requires trusting one party to go first, or hiring an escrow agent. With a smart contract:
- Alice sends payment to the contract address
- Bob sends a proof of delivery (or a third-party oracle confirms delivery)
- The contract automatically releases payment to Bob — or refunds Alice if delivery isn't confirmed within the deadline
No intermediary. No counterparty risk. The contract executes exactly as written, every time, regardless of what either party wants after the fact.
This immutability is both the strength and the weakness. A bug in the contract is also immutable — once deployed, it can't easily be patched. In 2016, a vulnerability in a smart contract called The DAO was exploited to drain roughly $60 million worth of Ether. The Ethereum community controversially hard-forked the blockchain to reverse the theft — creating a philosophical split between Ethereum (which reversed the transactions) and Ethereum Classic (which didn't).
Decentralized Finance
DeFi — decentralized finance — is the application of smart contracts to financial primitives: lending, borrowing, trading, earning yield. The goal: recreate the functions of financial institutions using open-source code running on a public blockchain, accessible to anyone with an internet connection and a wallet.
By 2021, DeFi protocols held over $100 billion in "total value locked" — funds deposited into smart contracts. Protocols like Uniswap (decentralized exchange), Aave (lending), and Compound (interest markets) processed billions of dollars in transactions daily.
The 2022 collapse of the FTX exchange — a centralized crypto platform, not a DeFi protocol — is instructive here. FTX failed because it was, in the end, a conventional institution: opaque, leveraged, dependent on the trustworthiness of its leadership. DeFi protocols, by contrast, published their code openly and operated exactly as their contracts specified. This didn't protect DeFi from market crashes or protocol hacks — there were both — but it did mean "code is law" failed differently than "trust the CEO."
Whether DeFi's particular failure modes are preferable to traditional finance's failure modes is a genuine open question.
NFTs: what they actually are
An NFT — Non-Fungible Token — is a unique record on a blockchain that represents ownership of something. That something can be anything: digital art, a video clip, a domain name, a concert ticket, a piece of virtual real estate.
The technical mechanism: a smart contract on Ethereum creates a token with a unique identifier. The token's current owner is recorded on the blockchain. Transferring ownership means updating that record via a signed transaction — verifiable, public, immutable.
What an NFT does not do: store the thing itself. Most NFTs contain a URL pointing to the actual image or file, which is hosted on a conventional server. If that server goes down — and many have — the NFT still exists on the blockchain, but it points to nothing. This is a fundamental design problem that some implementations address by using distributed storage systems like IPFS, but the solution is not universal.
The NFT boom of 2021 — when individual images sold for millions of dollars — collapsed almost entirely through 2022 and 2023. Whether NFTs represent a genuinely useful technology for provenance and ownership tracking, a speculative bubble now mostly deflated, or something in between depends heavily on which application you're examining. Their use as concert tickets, event credentials, and supply-chain provenance certificates continues to develop. Their use as primary asset classes for digital art has largely contracted.
The honest assessment
Smart contracts are a real technical innovation. The ability to encode agreements as immutable, self-executing code, accessible to anyone, is genuinely new. The question is always: does the use case actually require a decentralized, immutable, trustless system? Or would a conventional database running on conventional servers, operated by a regulated institution, do the job faster, cheaper, and more reliably?
For most business applications, the answer is: conventional database. For applications requiring coordination between parties who genuinely can't trust each other, or who need provable public auditability, or who operate across incompatible legal systems — smart contracts become interesting.
The record of deployed DeFi and smart contract applications includes both genuine innovations and spectacular failures, hacks, and abandoned projects. This is typical of early-phase technology. The infrastructure is being built; the killer applications are still being found.
Next lesson: Who is actually building this — Bitcoin Foundation, Ethereum Foundation, Coinbase, Binance — and how government regulation is arriving through MiCA, SEC enforcement, and central bank digital currencies.
Reading time: approx. 9–10 minutes