Smart contracts & programmability

token standard

A token standard is an agreed set of rules that a smart contract follows so that a token it creates behaves in a familiar, predictable way. A token here is simply an asset, a coin, a share, a collectible, that lives as an entry inside a contract on the blockchain. Without a common standard, every token would have its own quirks, and every wallet and exchange would need custom code to handle each one. A standard fixes that, much like a standardized power socket: any plug built to the same shape just works, no matter who made the appliance.

Concretely, a standard spells out the exact set of functions a token contract must offer and what each one does, for example a way to check someone's balance, a way to transfer tokens, and a way to authorize another contract to move tokens on your behalf. Because the names and behaviors are fixed, a wallet, marketplace, or other app can support any token built to that standard without knowing anything special about it in advance. The token's own contract still holds the real balances and rules; the standard just guarantees a common, public way to talk to it.

Token standards matter because they are the reason a single wallet can hold thousands of different tokens, and an exchange can list a new one within minutes. They turn tokens into interchangeable building blocks that snap neatly into the wider ecosystem. Different standards exist for different needs, notably ones for interchangeable units like a currency and ones for unique, one-of-a-kind items, each defining its own shared interface.

Because a popular wallet already understands a token standard, the moment a brand-new token is launched that follows it, the wallet can show your balance and let you send it, without its developers ever having heard of that specific token.

On Ethereum these standards are called ERCs; the best known are ERC-20 for interchangeable tokens and ERC-721 for unique ones.

Also called
代币标准代幣標準