澳洲幸运5官方开奖结果体彩网

What Crypto Users Need to Know: The ERC20 Standard

Vitalik Buterin, co-founder of Ethereum, speaks at the Token2049 conference in Singapore, on Wednesday, Sept. 18, 2024.
Vitalik Buterin, co-founder of Ethereum.

Bloomberg / Getty Images

What Is ERC20?

Ethereum Request for Comment 20🍸 (ERC20) is a standard for the Ethereum blockchain that requires certain scripting functions and two💝 events that must be used when creating a fungible token within a smart contract. It is perhaps easiest to think of ERC20 as a set of instructions that a smart contract on the Ethereum network must include.

Key Takeaways

  • An ERC20 token is a standard for creating and issuing smart contracts on the Ethereum blockchain.
  • ERC stands for "Ethereum Request for Comment," and the ERC20 standard was proposed in 2015.
  • Plenty of well-known digital currencies use the ERC-20 standard, including Maker (MKR), Basic Attention Token (BAT), Augur (REP), and OMG Network (OMG).

Why ERC20 Is Important

ERC20 was created by Ethereum developers on behalf of the broader Ethereum community in 2015 and was officially adopted in September 2017. Since then, the ERC20 standard has been a dominꦆant pathway for creating new tokens in the cryptocurrency space f𓄧or some time. There are tens of thousands of tokens that are ERC20 compliant.

Per official documentation, the ERC20 standard "...allows for the implementation of a standard API for tokens within Smart Contracts." In plain language, this means that a token (the alphanumeric sequence assigned to an asset) is created with the smart contract, making it only transferable if the conditions in the smart contract are met. An application programming interface (API) allows different applications that need access to the tokens the ability to do so.

This smart contract prevents parties from acting in bad faith because a💃sset transfers are completed automatically, outside the control of the transactions, once they agree to the transaction.

For example, if Bob agreed to pay Alice 1 ETH for a new token she had created, it might be possible not to pay Alice once it was trans🏅ferred. By keeping ownership locked to a sm🌜art contract, neither party needs to trust that the other will hold up their end of the bargain because the actions both need to take are completed for them.

ERC20 standardizes the way these 澳洲幸运5官方开奖结果体彩网:smart contracts and tokens are created, letting them ♈be reusable in other applications. This not only allows developers to use tokens and contracts that have already been created, but it allows them to be easily inspected by interested p🍌arties, increasing transparency and trust in the system.

Contents of the ERC20 Standard

ERC20𒊎 contains six functions tha♉t a compliant token must have:

  • TotalSupply: Provides information about the total token supply
  • BalanceOf: Provides account balance of the owner's account
  • Transfer: Executes transfers of a specified number of tokens to a specified address
  • TransferFrom: Executes transfers of a specified number of tokens from a specified address
  • Approve: Allows 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

Aℱdditionally, there are three ♎optional functions:

  • Name: The token's unique name
  • Symbol: An abbreviation used as a ticker or for other identification purposes
  • Decimals: How many decimal places the token will use, signifying how small an amount can be transferred or owned

These functions will trigger up to two events:

  • The Transfer Event: Takes place whenever tokens are transferred
  • The Approval Event: Activated whenever approval is required

Other ERCs

In previous yea🧜rs, to create a standard for Ethereum, a developer or group of developers submitted what was known as an Ethereum Improvement Proposal (EIP), describing the new functionality along with its specific protocols and standards. A committee then reviewed, approved, amended, and finalized that EIP—at that point, it became an ERC.

In October 2023, Ethereum split ERCs and EIPs in two, creating two tracks for improvements: ERCs are standardization proposals for the 澳洲幸运5官方开奖结果体彩网:application layer (how applications on Ethereum interact), and EIPs are blockchain improvement proposals for networking, interfaces, the consensus protocol, or other blockchain-specific improvements.

There are more than 200 total ERCs implemented, and many more are submitted and waiting for approval or rejection. Some notable approved proposals include ERC223, which aims to address a concern with the approval and transfer elements of ERC20; ERC721, the standard for non-fungible tokens; and ERC3156, a standardization of flash loans.

What Does ERC20 Mean?

The twentieth Ethereum Request for Comment (ERC20) is a standard for programming smart contracts on the Ethereum blockchain. It makes auditing easier and creates compat♎ibility between networks.

Is ERC20 the Same As Ethereum?

Ethereum is a blockchain and platform that hosts sma𒁏rt contracts, decentralized applications, cryptocurrencies, and other projects. ERC20 is an Ethereum standard for creating smart contracts on Ethereum.

What Is ERC20 Version?

ERC20 is a standard created, approved, and imp▨lemented by the Ethereum community for smart contracts.

The Bottom Line

ERC20 is a community-proposed standard for smart contracts and tokens associated with them. The standard allows users to transfer tokens and be re-used by any other Ethereum application. It also makes it easier fo🅘r them to be approved because the standardized elements must all be present.

The comments, opinions, and analyses expressed on Investopedia are for informational purposes online. Read our 澳洲幸运5官方开奖结果体彩网:warranty and liability disclaimer for more info.

Article Sources
Investopedia requires writers to use primary sources to support their work. These include white papers, government data, original reporting, and interviews with industry experts. We also reference original research from other reputable publishers where appropriate. You can learn more about the standards we follow in producing accurate, unbiased content in our editorial policy.
  1. Ethereum. "."

  2. Github. "."

  3. Ethereum. "."

  4. Ethereum. "."

Compare Accounts
The offers that appear in this table are from partnerships from which Investopedia receives compensation. This compensation may impact how and where listings appear. Investopedia does not include all offers available in the marketplace.

Related Articles