-
What are the benefits of setting a token standard like ERC20?
Token standards ensure the largest number of exchanges, wallets, nodes, etc, can consume, expose and interoperate with a given token (or a great many tokens). This yields an efficiency on the part of the developer but, possibly even more profound, is that it produces efficiencies in the economy itself, reducing friction among parties (be they systems, individuals or otherwise). -
What functions are in the ERC20 Token Standard Interface and what do they do?
function name(): Returns the token name.
function symbol(): Returns the token symbol (eg, ETH).
function decimals(): Returns the number of decimals used by the token (effectively defining the level of divisibility supported by the token).
function totalSupply(): Returns the total number of this token in existence.
function balanceOf: Returns the current balance of the provided address.
function transfer: Transfers a specified value (in tokens) from one address to another.
function transferFrom: Similar to the transfer function, but it allows a contract to transfer tokens on behalf of a party.
function approve: Allows a specified address to withdraw from your account multiple times, up to a certain amount.
function allowance: Related to the approve function, allowance returns the amount up to which some account B is permitted to withdraw from account A (through multiple withdrawals).