An Introduction to ERC-20 Tokens

An Introduction to ERC-20 Tokens

The blockchain and cryptocurrency worlds may appear intimidating to the average Joe, particularly for individuals lacking technical knowledge of blockchain and smart contracts. However, it is critical to constantly learn and keep up with the world's ever-changing advancements.

A basic awareness of some of the most important aspects of many of today's digital currencies is beneficial, particularly for people considering investing or transitioning into careers in the blockchain field. I will do my best in this article to introduce you to ERC-20 and ERC-20 tokens.

What is a Token?

Tokens are a type of digital asset. Tokens can be held for their monetary value or sold and staked to earn interest. Tokens, unlike coins, do not have their own blockchain. Instead, they function on the blockchains of other coins, such as Ethereum. Examples of tokens are Uniswap, Chainlink, and Polygon.

What is ERC-20?

“ERC” stands for “Ethereum Request for Comments”, which is an official protocol used to propose improvements to the Ethereum network, while “20” is the unique ID number used to identify the proposal. It is a programming standard that is utilized on the Ethereum network. This technical standard specifies a set of rules and actions that an Ethereum token or smart contract must adhere to, as well as the processes required to implement them. It's probably easiest to think of ERC20 as a collection of fundamental rules and functions that any new coin produced on the Ethereum network must adhere to. These rules cover how tokens can be exchanged, how transactions are approved, how users can access token data, and the overall supply of tokens. The protocol is required to ensure compatibility among the numerous tokens generated on Ethereum. Hence, ERC-20 tokens are tokens designed and created following the ERC-20 standards to be used solely on the Ethereum platform. Examples of ERC-20 tokens are Shiba Inu (SHIB), Tether (ERC20-USDT), Maker (MKR), etc.

History of ERC-20?

ERC20 was designed in 2015 by Ethereum developers on behalf of the Ethereum community as a whole, and it was officially recognized in September 2017. 1 To build this type of standard for Ethereum, a developer or group of developers must submit an Ethereum Improvement Proposal (EIP), which outlines the new functionality as well as its specific protocols and standards.

Functionality for ERC-20 tokens

ERC-20 defines a number of functionalities/rules that a token must be able to implement. Some functionalities are mandatory, while others are optional. The mandatory functionalities include:

  • TotalSupply: offers data on the overall token supply.
  • BalanceOf: returns the owner's account balance.
  • Transfer: sends a specific number of tokens to a specified address.
  • TransferFrom: does a given number of token transfers from a specified address.
  • Approve: allow a spender to withdraw a set number of tokens from a specified account.
  • Allowance: returns a set number of tokens from a spender to the owner

The optional functionalities and rules include:

  • Token Name: the name of the token, for example, Shiba Inu (SHIB).
  • Symbol: Symbol of token, for example, SHIB
  • Decimal (up to 18)

Benefits of ERC-20

ERC-20 also makes it exceedingly simple to create new tokens and, with a common standard, new tokens can be listed on exchanges or transferred to a wallet once created.

ERC-20 simplifies everything and prevents developers around the world from using different terminologies in the code that would have required exchanges and wallets to design infrastructure that could accommodate each other's code.

This is why Ethereum became the most popular platform for ICOs (Initial Coin Offering) in 2017.

Issues with ERC-20

Many people in the development community believe that ERC-20 is limited or defective in one or more ways. As a result, various alternative token standards have been proposed since the inception of ERC-20. These include ERC-223, which tries to address a problem with the ERC-20 approval and transfer parts.

ERC-621 is another option that has the same fundamental capabilities as ERC-20 but also adds the ability to increase or decrease the overall token supply. On the other hand, it allows an ERC-827 token holder to approve the use of tokens by a third party. To some extent, each of these new protocol proposals is based on ERC-20.

I hope this article explains the nitty gritty of ERC-20 tokens to you. I just might write on how to create your own ERC-20 token.

Till I come your way again,

Adios!😊