- What are the benefits of setting a token standard like ERC20?
The ERC-20 commands vital importance, because it defines a common list of rules that all Ethereum tokens must adhere to. Consequently, this particular token empowers developers of all types to accurately predict how new tokens will function within the larger Ethereum system. This simplifies and eases developers’ tasks, because they can proceed with their work, knowing that each and every new project won’t need to be redone every time a new token is released, as long as the token follows the rules.
- What functions are in the ERC20 Token Standard Interface and what do they do?
The functions are:
a) totalSupply : Returns the total circulating amount of tokens.
b) balance Of : Returns how many tokens exist in an account.
c) transfer : Transfer an amount of tokens from token owner’s account to another account.
d) approve : A token owner can approve for “spender” to “transferFrom tokens” from the token owner’s account.
e) allowance : Returns the amount of tokens approved by the owner that can transferred to the spender’s account.
f) transferFrom : Allows a spender account to transfer an amount of tokens on behalf of the token owner to another account.