- What are the benefits of setting a token standard like ERC20?
All token are programmed and built with the same standard functionalities. This is to build application that can interact and work well with each other.
- What functions are in the ERC20 Token Standard Interface and what do they do?
balanceOf - this is used to get the balance of token held by a specific address.
totalSupply - this is used to calculate the number of tokens in circulation.
transfer - this function is used to send tokens to another address.
transferFrom - this is used to transfer tokens to an address on behalf of the owner of the tokens.
approve - this is used to approve the withdrawal of the tokens.
allowance - this is to set the amount of token that can be transferred from an addrees to another.