ERC20
ERC-20 is the technical standard for fungible tokens created using the Ethereum blockchain. A fungible token is interchangeable wth another token- where the well-known non-fungible tokens (NFTs) are not interchangeable.
ERC-20 allows developers to create smart-contract-enabled tokens that can be used with other products and services. These tokens are a representation of an:
asset
right
ownership
access
cryptocurrency
or anything else that is not unique in and of itself but can be transferred
ERC-20 History
There was a problem with interoperability. Each token contract can be completely different from the other. So if you want your token to be avaible on an exchange, the exchange has to write custom code to talk to your contract and allow people to trade.
The same thing goes for wallet providers, supporting hundreds of tokens will be very complex and very time consuming, so that's why the community proposed a standart called ERC-20.
ERC-20 Contents
ERC-20 is a list of functions and events that must be implemented into a token for it to be considered ERC-20 compliant. The functions are:
TotalSupply: The total
number of tokens
that will ever be issuedBalanceOf The account balance of a token
owner's account
Transfer: Automatically executes
transfers
of a specifiednumber of tokens
to aspecified address
for transactions using the tokenTransferFrom: Automatically executes transfers of a
specified number
of tokens from aspecified address
using the tokenApprove: Allows a
spender
towithdraw
aset
number of tokens from aspecified account
, up to aspecific amount
Allowance: Returns a
set
number of tokens from aspender
to theowner
The events that must be included in the token are:
Transfer: An event triggered when a transfer
is successful
Approval: A log of an approved event
The following functions are optional and are not required to be included, but they enhance the token's usability:
Token's name (optional)
Its symbol (optional)
Decimal points to use (optional)
âť—Warning:
"Token" and "Cryptocurrency" are often used interchangeably; all cryptocurrencies are tokens, but not all tokens are cryptocurrencies. Tokens often represent assets and rights that are external to a blockchain. Token, in the context of ERC-20
compliance, simply means a blockchain representation of something that meets the standards set by the Ethereum community to be considered a smart contract standard-compliant token.
What Does ERC-20 Mean?
ERC-20 is Ethereum Request for Comment, number 20. ERC-20 is the standard for smart contract tokens created using Ethereum.
What Is an ERC-20 Wallet?
An ERC-20 wallet is a wallet that lets you manage ERC-20 compliant tokens
Last updated