What are the benefits of setting a token standard like ERC20?
It makes tokens created according to this standard similar in nature therefore more easy for crypto finance and other companies and services to process them - such as wallets, exchanges, staking wallets, lending and borrowing entities etc. It makes usage of such tokens more efficient as companies and services to dot have to be tailor made and adjusted for specific tokents written by a different standard.
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
.
balanceOf- returns the balance of a provided address (number of tokens)
totalSupply- the sum of all balances (all tokens) existing in circulation
transfer-sends tokens from senders address to receivers address
transferFrom-sends tokens according to a confirmation in advance on behalf of the token owner without a separate transfer or involvement of token ower at that specific moment
approve-owner of the tokens approves a provided address to withdraw funds from its address
allowance- returns the current approved number of tokens by an owner to be trasnferred to a specific recepient, as set in the approve
function.