🔰 What is ERC20 ? - in layman terms as per my capability👈😏

in #cryptocurrency6 years ago (edited)

Hi, Pankaj here 👋

erc20_anime.gif

                         I am pretty much sure most of you who are into crypto have come across the term ERC20 many times uptill now. May be you have just bought some ERC20 tokens in an ICO or you may have heard from your friend. So what the f**k is this ERC20 ? 😬 So let me explain to you in the simplest terms as within my capabilitiy.

ERC20.png

                         ERC20 is an acronym for Ethereum Request for Comments and 20 is associated with the Prosopal ID. It is a protocol or standard or you can say a guide line which tokens created on the Ethereum platform must follow to be acceptable as ERC20. It just like a recipe book but for Tokens.

erc20_purpose.jpg

a_peek_at_history.png

                         To properly understand the purpose of the ERC20 protocol let me take you to the early days of the internet. Back in the early days of the internet, communication between any two applications was very difficult as each programmer was creating their own custom code that only he/she understands, so in order for one application created bysay, programmer A to communicate with another application created by some another programmer say B, Programmer A must have a thorough and proper understanding of the code written by Programmer B. And this caused a lot of problems as it was time-consuming and inefficient and ultimately hindered the scalability of the internet.
                         So in order to make the internet quickly scalable, there was a need for some guidelines or common grounds which each application on the internet must adhere to in order to communicate with each other through the internet. Following these guidelines, programmers can create applications without bothering about the in-depth understanding of other applications working. These guidelines are today's protocols like HTTP, FTP etc we use in our day to day life. Creation of these protocols gave the early internet the scalability boost it required to become what it is today.

problems_with_early_eth.png

                         Same way as the internet, in the early days of Ethereum, developers creating tokens on Ethereum were completely free to implement whatever functions they require and however they require, for example say a developer create a Token A on Ethereum with having a token transfer function named transfer_A and another developer create another Token B having a transfer token function named transfer_B. These cause problems similar to what the internet faced long ago. As you can see both the tokens are having different transfer functions, named different or may function wise different too. The problem arises when these token are listed on exchanges. As the structure of both the tokens A and B are different, the exchanges, in order to interact with each of the tokens, need to write custom code for each of the tokens, which was cumbersome and inefficient as a lot of new tokens began to emerge. This was hindering the scalability and so the Ethereum platform required some sort of standards or guidelines for tokens.

erc20.gif
Gif prepared by Pankaj Borah

                         The standard they came up with is ERC20. Tokens create following these standards are known as ERC20 tokens and these solved a lot of the issues like now exchanges can write code only once and interact with all the ERC20 token without any modificationsto their current code, and these you may have noticed on My Ether Wallet on which every ERC20 token is available as soon it's created without having to write any further code. All this gave a boost in token interoperability among ERC20 tokens on the Ethereum platform and for exchanges ERC20 is acting like some sort of Swiss Army Knife.

exchange_erc20.gif
Gif prepared by Pankaj Borah

erc20_stanadard.jpg

optional_function.png

                         In ERC20 standard token name, symbol and decimals are optional. This means the creator can skip this parameters and then also the token will be considered ERC20 token. But there are 6 other mandatory functions which are implemented as an Interface contract which enforces the creator to define these for his/her token to meet the ERC20 standard 👇. If you don't know what an interface is, then long story short, it's an OOPs(Object Oriented Programming) programming structure that enforces certain properties on an object.

mandatory_function.png

  • totalSupply- this method defines the total supply of a token. When this limit is reached the smart contract will not create any further new tokens.

  • balanceOf - this method returns the no of tokens a given address has. You can compare this to checking any eth wallet balance on etherscan.

  • transfer - this method is used to transfer a given amount of token from the total supply to a user.

  • transferFrom - this method is used to transfer tokens between any two users.

  • approve - this verifies if the contract can give a certain amount of token to a user taking into account the total supply.

  • allowance - this verifies if a user has sufficient balance to send to a certain amount of token to another user.

                         So as you can see if the token creator implements the above guidelines for creating the contract then the token is considered and ERC20 token.Apart from these the creator can implement additional functionality as per his/her wish. With this I am wrapping up this article my friend. See you another time and as always, thanks your reading.😉


✌️ FOLLOW, UPVOTE or RESTEEM may be if you like this article.
✍️ +VE comments, suggestions and pointing out my mistakes before this post expires is welcome ❤️, after that nothing I can do about and for -VE and hate comments I don't give a shit.


v6mt1ywn00tgjwirh4uv.gif

Sort:  

Great overview!

I notice that you are very active in discussions of the cryptosphere - Maybe you would like to earn some more by becoming a Trivial token analyst?

Basically, I want to create some up-to-date reviews of the more popular tokens, focusing on fundamentals and usage.

To build it out, I am crowdsourcing the initial content, and getting in touch with a few bloggers from Steemit who analyse crypto. I'd be delighted if you considered writing about a token that interests you, and will pay $40 in ETH or STEEM for your time and effort. You'll be free to publish on Steemit as well, so you can also earn whatever post earnings you get.

More details here: https://steemit.com/cryptocurrency/@sroka87/become-a-token-analyst-on-trivial-co-earn-steem-eth

Hi friend, how are you? Thanks for your wonderful comment and don't mind but as of now I would not be able to accept your offer as I am quite busy with my own work, although I would have loved to do so, also I liked your website concept, it's very useful, but I really appreciate that you noticed my effort. Thank you and a big hug to you for that.🙂👍

No worries - thanks for checking out the site and glad u find it useful. If you ever feel like writing something when your less busy just get in touch!

ERC tokens are helpful , easy to use and understand.
I think the Real Etherium Is ERC20.
Thanks For this Wonderful Information.
You Are Just amazing❤️❤️

Very well informed about Ether token i think there are lot of token based on this . Very good post keep it up.

Posted using Partiko Android

yes, more than 90% of the tokens we see on coinmarketcap are ERC20.

Erc20 wallet is easy to use and beneficial for getting free air drops.

Yes @luckys, right.It because of the ERC20 standard that we can easily get any Ethereum based token easily on wallets like MEW

what a great explanation , now its all clear.

Write a simple article on steem working and its economy .

Posted using Partiko Android

Actually this is what steemit want ,good contant I don't find so nice contant on erc20 anywhere else

Posted using Partiko Android

Hi really nice article. I just follow you. Follow me back please. Thank you

Posted using Partiko Android