What is ERC-20?
What is ERC-20?
ERC stands for Ethereum Request for Comments. It’s the official protocol for proposing improvements to the Ethereum network. 20 stands for the number of the proposal. Technical specifications for tokens issued on Ethereum have been published in 2015. The tokens that meet those specifications are called ERC-20. In fact, they are smart contracts on the Ethereum blockchain. Even though they work within the framework of Ethereum, their functionality may vary as the limitations are not very strict.
ERC-20 determines the set of rules one has to observe so that the token could interact with other tokens on the network. The tokens themselves are blockchain assets that may or may not have value, and can be sent and received just like any other cryptocurrency.
Are ERC-20 tokens different from other cryptocurrencies?
ERC-20 tokens can act only within the Ethereum network. They use the address format of the network and are sent via Ethereum transactions. This makes them different from other cryptocurrencies that have their own blockchain. The transactions are viewable in the special browser.
This transaction may look empty as the value field reads null. However, the number of tokens (here it’s OmiseGo) is in another field.
How are ERC-20 tokens useful?
What are the functions of the ERC-20 protocol?
ERC-20 has six mandatory and three optional parameters for each smart contract.
Mandatory functions include:
- totalSupply: responsible for the general issuance of tokens and ensures that no new tokens are minted once the limit has been reached.
- balance0f: determines the initial number of tokens assigned to a certain address.
- transfer: ensures the transfer of tokens to the user who bought them from the issuer.
- transferFrom: required for users to transfer tokens to each other.
- approve: required to check whether the smart contract can issue tokens.
- allowance: required to check whether the address has enough funds to send tokens elsewhere.
Optional parameters include the maximum number of digits after the decimal point (for comparison, bitcoin has eight); the token name, and its symbol. Those parameters enable exchanges and wallet providers to create a unified code base that can interact with any ERC-20 contract.
Is using ERC-20 risky?
Are there any other problems with ERC-20?
ERC-20 can be too simplistic for certain objectives. As a result, there’s no guarantee that the token would be of any use or value. The same simplicity makes creating such tokens a very easy task in technical terms. Over 100 thousand ICO’s using ERC-20 tokens were launched in 2018 alone; some of those projects were very similar, while some others were scams.
Tokens can be mistakenly sent to the wrong address. If the smart contract does not provide for the option of fund retrieval, the funds will be lost forever. In 2017, there was $3 million worth of losses due to such mistakes. One may expect that the ERC-20 protocol will undergo some amendments in the future.
Subscribe to our Newsletter<
- Cryptocurrency Documentary Review: Should You Watch It and Why
- Token Ecosystem Nobody Has to Pay For: Will It Work?
- Ethereum May Not Be Able To Handle DeFi Workload: What It Could Mean for Decentralized Finance
- Resurrection of Altcoins Presumed Dead Is No Zombie Apocalypse but Something Else
- Multi-Collateral DAI: Collateral Priority Race Begins
- DeFi Passed $1B Total Value Locked: Grain of Salt
- Waves Breaks into dApps Market Launching Smart Contracts Functionality
- Xether Launches Transparent Gambling Ecosystem on Smart Contracts