What is ERC-20? An Ethereum Token Standard

Last Updated:
May 19, 2023
What is an ERC-20 - Feature Image

One term you've likely encountered, especially if you're venturing beyond Bitcoin, is "ERC-20." But what does it mean, and why is it crucial in the Ethereum ecosystem? Let's dive in.

Understanding the world of cryptocurrencies and blockchain technologies requires getting familiar with a wide range of terminology. One term you've likely encountered, especially if you're venturing beyond Bitcoin, is "ERC-20." But what does it mean, and why is it crucial in the Ethereum ecosystem? Let's dive in.

Understanding Tokens

To grasp ERC-20, we first need to understand what a token is in the context of blockchain technology. In its simplest form, a token represents a unit of value issued by a project or organization within a particular blockchain ecosystem. Tokens can serve a multitude of purposes, from granting access to a service (utility tokens), representing a real-world asset (asset-backed tokens), or serving as an investment vehicle (security tokens).

Ethereum, a leading blockchain platform, enables the creation of these tokens via smart contracts—self-executing contracts with the terms of the agreement directly written into code.

Enter ERC-20

The term ERC-20 stands for "Ethereum Request for Comment" with "20" being the unique proposal identifier. It's a standard for tokens created on the Ethereum blockchain. In essence, it outlines a common list of rules that all Ethereum tokens must follow.

The ERC-20 standard was proposed in 2015 by developer Fabian Vogelsteller. It quickly gained adoption due to its simplicity and versatility, becoming the industry standard for token creation on the Ethereum blockchain.

But why is this standard necessary? In the absence of a standard like ERC-20, every new token created on the Ethereum blockchain would need to be thoroughly understood by wallets, exchanges, and other smart contracts to enable interactions. This would be highly inefficient and could lead to errors. The ERC-20 standard, therefore, creates a common language that all tokens can use, making them immediately compatible with any platform that supports the ERC-20 standard.

Functions of the ERC-20 Standard

The ERC-20 standard specifies a set of six functions that a token contract on Ethereum must implement. These functions can be broadly classified into two categories: those that provide information about the token and those that enable transactions with the token.

Informational Functions:

  • totalSupply(): This function provides information about the total token supply.
  • balanceOf(address _owner): This function provides the number of tokens held by a specific address.
  • allowance(address _owner, address _spender): This function provides the number of tokens allowed to be transferred from a specific address by another specific address.

Transactional Functions:

  • transfer(address _to, uint256 _value): This function allows a certain number of tokens to be transferred directly from the message sender to another address.
  • approve(address _spender, uint256 _value): This function allows a certain number of tokens to be spent by another address.
  • transferFrom(address _from, address _to, uint256 _value): This function allows a certain number of tokens to be transferred from one address to another.

Real World Applications of ERC-20

The impact of the ERC-20 standard on the Ethereum ecosystem cannot be overstated. Since its inception, countless tokens have been created that adhere to the ERC-20 standard. Notable examples include Chainlink (LINK), USD Coin (USDC), and Binance Coin (BNB). These tokens, while serving different purposes, are all compatible with the same wallets, exchanges, and smart contracts, thanks to the ERC-20 standard.

Limitations and the Future

While the ERC-20 standard has been instrumental in the growth of the Ethereum ecosystem, it's not without its limitations. Issues with token contract bugs and the inability to handle incoming transactions in the same way that Ether (ETH) transactions can have led to efforts to improve upon it. This has given rise to new token standards such as ERC-223, ERC-721, and more recently, ERC-1155, each with its own set of features and advantages.

For example, ERC-223 addresses the issue of lost tokens which happens when they are accidentally sent to a smart contract that doesn't handle them. ERC-721, on the other hand, introduces non-fungible tokens (NFTs), enabling the creation of unique, indivisible tokens perfect for representing ownership of unique items or assets.

Despite the emergence of these newer standards, ERC-20 remains the most widely used and recognized token standard on the Ethereum platform.

Limitations of ERC-20

Despite the versatility and convenience of ERC-20 tokens, they are not without their drawbacks, many of which stem from the limitations of the Ethereum network itself.

  • Low throughput: Ethereum has faced congestion issues, which can drive up transaction costs and slow down the speed of transactions. As of the time of writing, Ethereum can handle around 15 transactions per second (TPS). This limitation is something Ethereum aims to address with its upcoming transition to a Proof-of-Stake (PoS) consensus mechanism known as Ethereum 2.0​​.
  • Transaction costs: Transacting with ERC-20 tokens requires spending Ether (ETH) to cover the transaction fees (also known as "gas"). This can result in substantial costs, especially during times of network congestion​​.
  • Trust issues with stablecoins: Stablecoins like Tether (USDT), an ERC-20 token pegged to the US dollar, have faced criticism and trust issues. Although theoretically backed 1:1 by US dollars, Tether has admitted its tokens are not 100% backed by actual dollars, leading to occasional deviations from its peg. This highlights a broader issue with asset-backed ERC-20 tokens, where trust in the token relies on the issuer's claims about reserve holdings​​.

The Future of ERC-20

ERC-20 tokens have played a significant role in the growth of the crypto ecosystem. Their ability to serve as digital currencies, provide loyalty rewards, grant voting rights, or even represent physical objects like gold has opened up a world of possibilities. This has made Ethereum the second most popular blockchain ecosystem after Bitcoin.

The future of ERC-20 looks promising. Despite the emergence of new Ethereum token standards and so-called "Ethereum killers," the simplicity, versatility, and wide adoption of ERC-20 make it a standard that will likely persist in the foreseeable future.

The only conceivable threat to ERC-20 within the Ethereum ecosystem is the potential overshadowing by newer token standards that offer improved features and functionality. However, as of now, ERC-20 remains the preferred choice for most token implementations​​.

It's worth noting the arrival of new token standards on other blockchains, such as Binance Smart Chain's BEP-20 and Tron's TRC-20. Despite the growth and popularity of these new standards, as of now, ERC-20 tokens remain more versatile and widely accepted by different crypto wallets.

The BRC-20 standard, based on ERC-20 and existent on the Bitcoin blockchain, is also gaining popularity. However, ERC-20 tokens, being a well-established standard, are still seen as the superior choice as trends in the crypto industry are observed with a degree of skepticism and newer products have to prove their worth over time​​.

Frequently Asked Questions

What is an ERC-20 token?

  • ERC-20 is a standard for tokens on the Ethereum blockchain. It includes a set of rules and functions that a token must implement to be ERC-20 compliant. This includes functions for transferring the token, inquiring the balance of an account, and getting the total supply of the token.

What is the purpose of the ERC-20 standard?

  • The ERC-20 standard was created to provide a common set of features and interfaces for token contracts in Ethereum. This makes it easier for developers to create new tokens that can interact seamlessly with existing applications, wallets, exchanges, and other contracts.

How are ERC-20 tokens created?

  • ERC-20 tokens are created on the Ethereum blockchain by deploying a smart contract that follows the ERC-20 standard. This contract includes details such as the name of the token, its symbol, and how many will exist.

What are some examples of ERC-20 tokens?

  • Some popular examples of ERC-20 tokens include Chainlink (LINK), USD Coin (USDC), and Tether (USDT).

Can I lose ERC-20 tokens by sending them to the wrong address?

  • Yes, ERC-20 tokens can be permanently lost if they are sent to an incorrect address or a contract address that doesn't support ERC-20 tokens. Always double-check addresses before sending tokens.

What are the limitations of ERC-20 tokens?

  • Some limitations of ERC-20 tokens include low throughput due to Ethereum network congestion, the need to spend Ether to cover transaction fees, and trust issues with stablecoins like Tether that are supposed to be backed by real-world assets.

What is the future of ERC-20 tokens?

  • Despite the emergence of new token standards and other blockchains, the simplicity, versatility, and wide adoption of ERC-20 make it a standard that is likely to persist. The only conceivable threat to ERC-20 within the Ethereum ecosystem is the potential overshadowing by newer token standards that offer improved features and functionality​​.

Can ERC-20 tokens be used outside of the Ethereum network?

  • While ERC-20 tokens are native to the Ethereum network, they can be used on other blockchains through the use of bridges and wrapped tokens. A wrapped token is a token from one blockchain that has been 'wrapped' into a format that can be used on another blockchain.

What are some alternatives to the ERC-20 standard?

  • Alternatives to the ERC-20 standard on the Ethereum blockchain include ERC-223, ERC-721, and ERC-1155, each offering additional features or functionality. Other blockchains have also introduced their own token standards, such as Binance Smart Chain's BEP-20 and Tron's TRC-20.

Are all Ethereum tokens ERC-20 tokens?

  • No, not all Ethereum tokens are ERC-20 tokens. While ERC-20 is the most common standard, there are others like ERC-721 and ERC-1155 that define their own unique behaviors and characteristics.

Conclusion

The ERC-20 standard has undeniably revolutionized the Ethereum ecosystem and the wider blockchain world. It has streamlined the token creation process, promoting interoperability and reducing complexity. While it has its limitations, many of these are being addressed through network upgrades and the emergence of new token standards.

Despite the challenges, the ERC-20 standard's wide acceptance, versatility, and enduring relevance suggest that it will continue to play a significant role in the future of digital tokens. As the blockchain space continues to evolve, it will be interesting to see how the role of ERC-20 and its sibling standards develop. One thing is for sure, the journey of digital tokens is just beginning, and ERC-20 has set a strong foundation for this exciting future.