{"id":7942,"date":"2017-01-23T20:50:13","date_gmt":"2017-01-23T18:50:13","guid":{"rendered":"https:\/\/forklog.media\/?p=7942"},"modified":"2020-01-27T13:39:36","modified_gmt":"2020-01-27T11:39:36","slug":"what-is-erc-20","status":"publish","type":"post","link":"https:\/\/forklog.com\/en\/what-is-erc-20\/","title":{"rendered":"What is ERC-20?"},"content":{"rendered":"<div id=\"cards_wrapper\">\n<div class=\"single_card\">\n<p id=\"card_counter_1\" class=\"card_counter\"><span class=\"card_counter_span\">1<\/span><\/p>\n<p><strong>What is ERC-20?<\/strong><\/p>\n<div class=\"card_description\">\n<p>ERC stands for Ethereum Request for Comments. It\u2019s 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.<\/p>\n<p>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.<\/p>\n<\/div>\n<\/div>\n<div class=\"single_card\">\n<p id=\"card_counter_2\" class=\"card_counter\"><span class=\"card_counter_span\">2<\/span><\/p>\n<p><strong>Are ERC-20 tokens different from other cryptocurrencies?<\/strong><\/p>\n<div class=\"card_description\">\n<p>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.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/forklog.com\/wp-content\/uploads\/erc-20-txn.png\" \/><\/p>\n<p>This <a href=\"https:\/\/etherscan.io\/tx\/0x2e81009efe3c00f4869ac4a39fa9b106d5b9fb14d73e98a70d7c5f6f96f4d807\">transaction<\/a> may look empty as the value field reads null. However, the number of tokens (here it\u2019s OmiseGo) is in another field.<\/p>\n<\/div>\n<\/div>\n<div class=\"single_card\">\n<p id=\"card_counter_3\" class=\"card_counter\"><span class=\"card_counter_span\">3<\/span><\/p>\n<p><strong>How are ERC-20 tokens useful?<\/strong><\/p>\n<div class=\"card_description\">ERC-20 tokens may work as shares, asset ownership certificates, loyalty points, or a cryptocurrency. Sometimes they may combine those functions. The most well-known ERC-20 tokens include Augur, Aeternity, BinanceCoin, EOS, Gnosis, and Wings.<\/div>\n<\/div>\n<div class=\"single_card\">\n<p id=\"card_counter_4\" class=\"card_counter\"><span class=\"card_counter_span\">4<\/span><\/p>\n<p><strong>What are the functions of the ERC-20 protocol?<\/strong><\/p>\n<div class=\"card_description\">\n<p>ERC-20 has six mandatory and three optional parameters for each smart contract.<\/p>\n<p>Mandatory functions include:<\/p>\n<ul>\n<li>totalSupply: responsible for the general issuance of tokens and ensures that no new tokens are minted once the limit has been reached.<\/li>\n<li>balance0f: determines the initial number of tokens assigned to a certain address.<\/li>\n<li>transfer: ensures the transfer of tokens to the user who bought them from the issuer.<\/li>\n<li>transferFrom: required for users to transfer tokens to each other.<\/li>\n<li>approve: required to check whether the smart contract can issue tokens.<\/li>\n<li>allowance: required to check whether the address has enough funds to send tokens elsewhere.<\/li>\n<\/ul>\n<p>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.<\/p>\n<\/div>\n<\/div>\n<div class=\"single_card\">\n<p id=\"card_counter_5\" class=\"card_counter\"><span class=\"card_counter_span\">5<\/span><\/p>\n<p><strong>Is using ERC-20 risky?<\/strong><\/p>\n<div class=\"card_description\">As ERC-20 tokens are essentially smart contracts, they cannot be changed after the initiation, even though they may have bugs and vulnerabilities that can result in the loss of funds. The most infamous instance of that is the hack of The DAO back in 2016 and the loss of nearly $60 million. As a result, the Ethereum blockchain was hardforked and divided into Ethereum and Ethereum Classic in an attempt to rewind the consequences of the hack.<\/div>\n<\/div>\n<div class=\"single_card\">\n<p id=\"card_counter_6\" class=\"card_counter\"><span class=\"card_counter_span\">6<\/span><\/p>\n<p><strong>Are there any other problems with ERC-20?<\/strong><\/p>\n<div class=\"card_description\">\n<p>ERC-20 can be too simplistic for certain objectives. As a result, there\u2019s 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\u2019s using ERC-20 tokens were launched in 2018 alone; some of those projects were very similar, while some others were scams.<\/p>\n<p>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.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1 What is ERC-20? ERC stands for Ethereum Request for Comments. It\u2019s 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 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":7947,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"select":"1","news_style_id":"","cryptorium_level":"","_short_excerpt_text":"","creation_source":"human_written","_metatest_mainpost_news_update":false,"footnotes":""},"categories":[1003],"tags":[791,46,54],"class_list":["post-7942","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","tag-erc-20","tag-ethereum","tag-smart-contracts"],"aioseo_notices":[],"amp_enabled":true,"views":"493","promo_type":"1","layout_type":"","short_excerpt":"","is_update":"","_links":{"self":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/7942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/comments?post=7942"}],"version-history":[{"count":2,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/7942\/revisions"}],"predecessor-version":[{"id":7946,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/7942\/revisions\/7946"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media\/7947"}],"wp:attachment":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media?parent=7942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/categories?post=7942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/tags?post=7942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}