- What are the benefits of setting a token standard like ERC20?
Having standards that unite all ERC20 tokens makes it easier to build them and have them communicate with each other and other important components of the ecosystem such as wallets and exchanges. It makes the ecosystem much more efficient and allows it to grow and become adopted faster.
- What functions are in the ERC20 Token Standard Interface and what do they do?
function totalSupply() states total supply of tokens in circulation
function balanceOf(address account) states balance of a specified account
function transfer() transfers a specified number of tokens from one address to another
function allowance() displays the number of tokens that spender will be allowed to spend on behalf of owner
function transferFrom() allows a smart contract to automate the transfer process and send a given amount of tokens on owner’s behalf
function approve() authorizes the given address to withdraw tokens from owner’s address