Sub topic 1
Coins and tokens: what a token actually is
Prerequisites
Assume you understand that a blockchain is a shared ledger, that wallets control addresses with private keys, and that smart contracts are programs deployed to a blockchain. You should also know that transactions change the ledger state and require transaction fees.
The core distinction
A coin is the native asset of a blockchain. It is part of the blockchain's own accounting system. Ether (ETH) is the coin of Ethereum. SOL is the coin of Solana. The network uses its coin to pay transaction fees, reward validators, and sometimes transfer value directly between addresses.
A token is an asset created and tracked by a smart contract on an existing blockchain. The contract stores balances and defines what users can do with the asset. A token does not create its own consensus network. It uses the security and transaction system of its host chain.
This distinction is about how an asset is implemented, not whether it has a high or low market value. A token can represent a dollar, a voting right, access to a service, or a purely speculative asset.
How a token balance works
On an Ethereum-compatible chain, an ERC-20 token contract usually keeps a mapping from addresses to balances. The mapping is conceptually similar to:
address -> number of token units
When Alice transfers tokens to Bob, the contract checks Alice's balance, subtracts the amount, and adds it to Bob's balance. The blockchain records the resulting contract state. Wallet software reads that state and displays the token balance.
The ERC-20 standard is a common interface for fungible tokens. Fungible means that each unit is interchangeable with another unit of the same token. One GOV token has the same basic identity as any other GOV token. The standard defines familiar operations such as:
balanceOf, which reads an address's balancetransfer, which moves tokensapprove, which gives another address permission to spendtransferFrom, which spends an approved allowancetotalSupply, which reports the recorded supply
The standard does not guarantee that a token is safe, valuable, decentralized, or fairly distributed. It mainly lets wallets, exchanges, and applications interact with the contract in a predictable way.
A worked transaction
Suppose Alice owns 100 units of a token and calls transfer(Bob, 25). The token contract may perform this sequence:
- Confirm that Alice has at least 25 units.
- Reduce Alice's recorded balance to 75.
- Increase Bob's recorded balance by 25.
- Emit a transfer event so applications can index the movement.
- Charge the network's native coin as a transaction fee.
The fee is paid in the chain's coin, not necessarily in the token being transferred. This is why a wallet holding tokens may still need ETH or another native coin to move them.
| Property | Native coin | Smart-contract token |
|---|---|---|
| Created by | Blockchain protocol | Deployed smart contract |
| Main accounting location | Protocol ledger | Contract storage |
| Typical fee asset | The coin itself | The host chain's native coin |
| Examples | ETH, SOL | USDC, UNI, many ERC-20 assets |
Why the distinction matters
A token's design depends on its contract. The contract may allow a fixed supply, future minting, burning, transfer fees, pausing, or administrative control. These permissions affect risk and value.
Classification comes later. A utility token, governance token, and memecoin can all use the same ERC-20 interface. Their differences usually come from purpose, demand, distribution, and social context rather than from the basic balance ledger.
Exercise
Why can a token transfer require ETH even when no ETH is being sent to the recipient?
Show answer
The transaction changes token contract state, so the sender must pay the blockchain's transaction fee in its native coin.