What Is ERC20?
Ethereum Re🌟quest for Comment 20 (ERC20) is a standard for the Ethereum blockchain that requi🌸res 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 dominant pathway fo🐟r creating new tokens in the cryptocurrency space for 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 contꦅract p🔴revents parties from acting in bad faith because asset 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 transferred. By keeping ownership locked to a smart contract, neither party needs to trust that the other will hold up their end of the b꧃argain 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 contractওs that have already been created, but it alღlows them to be easily inspected by interested parties, increasing transparency and trust in the system.
Contents of the ERC20 Standard
ERC20 cont🌱ains six functions that 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
Additionally, ther🍰e 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 years, 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 bl🌃ockchain. It makes 🧜auditing easier and creates compatibility between networks.
Is ERC20 the Same As Ethereum?
Ethereum is a blockchain and platform that hosts smart contracts, decentrali✨zed 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 for 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.