- What are the benefits of setting a token standard like ERC20?
All tokens are the same therefore, it increases interoperability between these tokens, due to sharing the same syntax, indicating exchanges and wallets can integrate them from day 1. Furthermore all programmers can read each other´s code, which allows easier further development.
- What functions are in the ERC20 Token Standard Interface and what do they do?
balanceOf() function: Provides number of tokens held by an address
transfer() function: Transfers a number of tokens directly from the message sender to another address.
totalSupply() function: Keeps track of the token balance in each Ethereum wallet.
transferFrom() function: Enables token holders to exchange tokens with one another after the initial distribution occurs.
approve() function: Used to âapproveâ other accounts to withdraw a certain amount of tokens from the account calling the function.
allowance() function: After approve() is used, allowance() is used to see the amount of tokens the approved account is allowed to withdraw from the original account.