Explainers
Token standards explained: ERC-20, ERC-721, SPL and TRC-20
On Ethereum and the chains built like it, a token is not something the chain itself keeps. It is a balance recorded by a contract, and a token standard is an agreement about which functions that contract exposes, so that a wallet or an exchange can read and move any token in the same way. The standard fixes the interface and very little of the behaviour. The name and symbol a token reports are strings its deployer chose, and what identifies it is the chain plus an address: the token’s contract, or on Solana its mint.
A coin the protocol keeps, a token a contract keeps
Ethereum’s protocol tracks one asset directly: ether, held in accounts and used to pay for gas. Everything else on it is a token, which exists only as entries in some contract’s storage. The two are different enough that ether does not meet the most common token standard. Ethereum.org’s page on wrapped ether says that because ETH “predates the ERC-20 standard”, it does not conform to it, which is why a wrapper contract exists that takes ether and issues an equal amount of an ERC-20 token in return. Solana has the same arrangement: its token program treats wrapped SOL as one more token type, under a fixed address it calls the native mint.
The difference shows up on a block explorer. Sending ether moves value in the transaction itself. Sending a token is a call to the token’s contract, so the transaction’s own value is usually zero and the payment appears in the contract’s logs, which how to read a block explorer shows field by field.
ERC-20: an interface for interchangeable balances
ERC-20, dated November 2015 and marked
Final, is the standard for tokens where every unit is the same as every other.
It specifies six functions that report and move balances (totalSupply,
balanceOf, transfer, transferFrom, approve and allowance) and two
events, Transfer and Approval, which a contract must emit and which
software watching the chain reads to follow what happened.
The parts a user sees are the least binding. name, symbol and decimals
are all marked optional, and the standard says interfaces and other contracts
“MUST NOT expect these values to be present”. Balances are stored as whole
numbers, and decimals tell software where to put the point: the standard’s own
example is that a value of 8 means dividing the stored amount by 100,000,000 to
get what a person should see. The
display is the wallet’s arithmetic, not the contract’s.
ERC-20 also leaves out the questions that matter most about a token’s supply.
It says a contract that creates tokens should emit a Transfer from the zero
address when it does, and nothing about who may create them or how many; what
a supply schedule actually commits to covers how to find that out
from the contract. The approve and transferFrom pair, which lets another
address move your tokens up to a limit, is what decentralised exchanges rely on
and what drainers ask their victims to sign; what a wallet connection
approves deals with it in full.
Conformance is a matter of degree. The standard tells callers they “MUST handle
false” as a return value from transfers and must not assume it never comes.
Tether’s own integration notes
warn that its USD₮ contract on Ethereum “is based on a slightly older standard
that does not return a Boolean value in the transfer function”, and tell
developers to use a library that copes with both. A token can be an ERC-20
token in everyday speech and still differ from the text.
Other chains copied the interface. BNB Chain’s BEP-20 describes itself as “deriving the ERC20 protocol of Ethereum”. TRON’s documentation calls TRC-20 “fully compatible with Ethereum’s ERC-20 at the interface level”, and says any contract implementing its functions and events qualifies. TRON also has a second form, TRC-10, which is built into the protocol itself and runs no contract code. A TRC-10 token is identified by a token ID number, and each account may issue only one. What Tron is explains Tron’s fee resources, including energy, which is charged for the computation when contract code runs.
ERC-721 and ERC-1155: tokens with an ID
ERC-721, dated 2018, covers tokens
that are not interchangeable. Each one has a number inside its contract, and the
standard says the pair of contract address and token ID “will then be a globally
unique and fully-qualified identifier for a specific asset on an Ethereum
chain”. The contract records who owns each ID, answers ownerOf, and must also
implement ERC-165, a way for other
contracts to ask which interfaces it supports.
What people usually mean by the asset, a picture or a document, is mostly
outside that record. The metadata extension that provides a tokenURI is
optional, the URI “may point to a JSON file” describing the asset, and the
standard states that the URI “MAY be mutable”. On chain, the holder owns an ID.
In the standard’s metadata schema the image is itself a URI, and whether anyone
can change what a token points to is up to the contract.
ERC-1155, also dated 2018, puts many
token types in one contract. Each ID can be a fungible token or a single item,
balances are read per owner and ID, and transfers can move several types at
once. Its approvals are coarser. The standard’s setApprovalForAll lets an
operator “manage one’s entire set of tokens on behalf of the approver”, and it
leaves narrower approvals to extensions. ERC-721
has the same all-at-once function beside its per-token approval, and it is one
of the grants wallet drainers are built to
obtain, since one call covers a whole collection.
Solana: one program, many mints
Solana does not give each token its own contract. The SPL Token program is, in its documentation’s words, “a common implementation for Fungible and Non Fungible tokens”, and every token type it handles is a mint account created through that one program. Balances sit in separate token accounts, one or more per holder per mint, and the program’s wallet guide describes a convention, the associated token account, for finding a user’s account for a given mint from their main address. The documentation’s definition of an NFT is short: “a token type where only a single token has been minted”.
Supply control is part of the mint itself. A mint has a mint authority that can create new tokens at any time, and setting that authority to none renders “the Mint’s supply fixed”. It may also have a freeze authority that can make any holder’s token account unusable until it is thawed. Both are fields of the mint account, so anyone can read them directly, with no contract code to work through.
A second program, Token-2022, is a superset of the first, with its own program address and optional extensions that mint creators opt into. Its listed mint extensions include transfer fees, a permanent delegate, pausing and non-transferable tokens. Two tokens that look alike in a wallet can therefore run under different programs with different powers attached. What Solana is covers the chain these tokens live on.
Same name, several tokens
Nothing stops two contracts from reporting the same name and symbol. ERC-721’s authors put it plainly: “any smart contract can use the same name and symbol as your contract”, and how a client decides which contracts are well known “is outside the scope of this standard”. None of the standards here defines a registry of names.
So one brand can be several tokens. Circle publishes a separate USDC address
for each network it
supports: on
Ethereum it is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, on Base
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, and on Solana the mint
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. Each is its own ledger. A
balance in one cannot be spent on another chain without going through the issuer
or a bridge. Tether’s page likewise lists its USD₮ contract separately for
Ethereum, Tron, Solana and other networks. How stablecoin supply divides
between chains is read from the snapshot in where stablecoin supply
lives.
Then there are representations the issuer did not create. Circle’s page notes
that X Layer, one of the networks it lists, also has “a separate bridged USDC
representation, labeled USDC.e, which is not issued or backed by Circle”.
Ethereum.org says the same of wrapped ether: besides the canonical contract,
other WETH variants “may behave differently or have different security
properties”.
The same gap is what scams use. A counterfeit token with a familiar symbol is one of the tools of address poisoning, and because EVM addresses look identical across networks, sending to the right address on the wrong chain is a separate mistake with its own causes.
What a standard does not tell you
A standard describes how a token can be called, not what it will do when called.
Circle’s published source for its EVM
stablecoins
shows the point: its transfer function runs only when the contract is not
paused and when neither the sender nor the recipient is on a blacklist, which an
address holding the blacklister
role
can add to. None of that conflicts with ERC-20, which is silent on it. The
Token-2022 extensions above are the same kind of power, written into a shared
program instead of a token’s own contract. And a contract behind an upgradeable
proxy can change its behaviour later, which the tokenomics piece
treats as a question of who holds the upgrade key.
For anyone receiving or holding a token, the checks follow from that. Take the contract address or mint from the issuer’s own published list rather than from a search by name. Compare it in full, with the chain, on the explorer’s token page. Then read what the contract or mint allows: who can create more, who can freeze or block transfers, and whether the code can be replaced. The name, the symbol and the logo are labels for display, and the address is the token.