Hello
-
What are the benefits of setting a token standard like ERC20?
Standard is needed to different institutions to be able to read, interact, transfer etc all sort of tokens. If every token would have their own standard then keeping up with their computing language for a wallet would be insane. -
What functions are in the ERC20 Token Standard Interface and what do they do?
ERC20 defines the functions ;balanceOf, totalSupply, transfer, transferFrom, approve, and allowance. It also has a few optional fields like the token name, symbol, and the number of decimal places with which it will be measured. -
totalSupply :Although the supply could easily be fixed, as it is with Bitcoin, this function allows an instance of the contract to calculate and return the total amount of the token that exists in circulation.
-
balanceOF: This function allows a smart contract to store and return the balance of the provided address. The function accepts an address as a parameter, so it should be known that the balance of any address is public.
-
approve: When calling this function, the owner of the contract authorizes, or approves , the given address to withdraw instances of the token from the ownerâs address.
-
transfer: This function lets the owner of the contract send a given amount of the token to another address just like a conventional cryptocurrency transaction.
-
transferForm: This function allows a smart contract to automate the transfer process and send a given amount of the token on behalf of the owner.