- What are the benefits of setting a token standard like ERC20?
Ethereum has made it very easy for anyone to create and issue virtual tokens on its blockchain. This is done with the help of standardized Ethereum smart contracts, such as ERC20. In this way, people, businesses, or governments can issue their own virtual currencies, assets, or application tokens using the Ethereum blockchain, without the need to build their own blockchains.
- What functions are in the ERC20 Token Standard Interface and what do they do?
There are various functions within the ERC 20 token standard such as:
balanceof() which will provide a balance of the particular token at a given address
transfer() which will transfer a number of tokens from the sender to another address.
totalSupply() This function returns the number of the total supply of tokens
transferFrom() This function takes from the senderâs address, to the recipientâs address), and the value (amount).
approve() This function takes the recipient and the value (number of tokens) is used to authorize the spenderâs address to make transfers on behalf of the token owner up to the approved amount (value)
allowance() This function takes the address of the token owner and the spenderâs address and returns the remaining number of tokens that the spender has approval to withdraw.from the token owner.