This article needs additional citations for verification. (August 2017) (Learn how and when to remove this template message)
ERC20 is a technical standard used for smart contracts on the Ethereum blockchain for implementing tokens . ERC stands for Ethereum Request for Comment, and 20 is the number that was assigned to this request.
ERC20 defines a common list of rules for Ethereum tokens to follow within the larger Ethereum ecosystem, allowing developers to accurately predict interaction between tokens. These rules include how the tokens are transferred between addresses and how data within each token is accessed. 
History[edit | edit source]
ERC20 was proposed on November 19, 2015 by Fabian Vogelsteller. It defines a common list of rules that an Ethereum token has to implement, giving developers the ability to program how new tokens will function within the Ethereum ecosystem. This token protocol became popular with crowdfunding companies working on initial coin offering (ICO) cases.
Today[edit | edit source]
Functions[edit | edit source]
ERC20 token has the following method-related functions:
The specific wording of the function is followed by a clarification of what it does, in [brackets]
totalSupply[Get the total token supply]
balanceOf(address _owner) constant returns (uint256 balance)[Get the account balance of another account with address _owner]
transfer(address _to, uint256 _value) returns (bool success)[Send _value amount of tokens to address _to]
transferFrom(address _from, address _to, uint256 _value) returns (bool success)[Send _value amount of tokens from address _from to address _to]
approve(address _spender, uint256 _value) returns (bool success)[Allow _spender to withdraw from your account, multiple times, up to the _value amount. If this function is called again it overwrites the current allowance with _value]
allowance(address *_owner*, address *_spender*) constant returns (uint256 remaining)[Returns the amount which _spender is still allowed to withdraw from _owner]
Transfer(address indexed _from, address indexed _to, uint256 _value). [Triggered when tokens are transferred.]
Approval(address indexed _owner, address indexed _spender, uint256 _value)[Triggered whenever approve(address _spender, uint256 _value) is called.]
References[edit | edit source]
- "ERC20 Token Standard - The Ethereum Wiki". Theethereum.wiki. Retrieved 30 August 2017.
- "ERC20 Token Standard - The Ethereum Wiki". theethereum.wiki. Retrieved 2018-04-27.
- Reiff, Nathan (2017-06-20). "What is ERC-20 and What Does it Mean for Ethereum?". Investopedia. Retrieved 2018-04-27.
- "ERC: Token standard #20". Github.com. Retrieved 13 April 2018.
- "Understanding the Ethereum ICO Token Hype". Blockchannel. 15 June 2017. Retrieved 30 August 2017.
- etherscan.io. "Etherscan Token Tracker Page". etherscan.io. Retrieved 2018-01-03.
- "Token Data | News, data and analytics for all ICO's and tokens". www.tokendata.io. Retrieved 2018-01-03.