- What are the benefits of setting a token standard like ERC20?
All wallets and exchanges can read and execute code ERC20 on the ethereum network, this negates the need for a unique support system for every coin or smart contract. it is the economy standard.
- What functions are in the ERC20 Token Standard Interface and what do they do?
function balanceOf() this function show the amount of tokens on a target addres
function transfer() send x tokens from address A(message sender) to address B
function approve() this function is sent by the token holder to allow for the transfer of his tokens and the amount, called allowance.
function transferFrom() once allowance is established this function can initiate the tx, if there are not enough tokens it will fail however.
function allowance() this function sets the amount of tokens that can be send to this address, amounts can be exceeded.