2. What functions are in the ERC20 Token Standard Interface and what do they do?
Hello sir, could you please describe a little bit more what every function does exactly?
If you have any doubt, please let us know so we can help you!
Carlos Z.
2. What functions are in the ERC20 Token Standard Interface and what do they do?
Hello sir, could you please describe a little bit more what every function does exactly?
If you have any doubt, please let us know so we can help you!
Carlos Z.
1.The benefits of having a token standard are that it makes it much easier for the advancement of a crypto space as a whole if all other services can integrate with the plethora of ERC20 tokens in the same fashion. Rather than having different ways of programming thingsā¦Given size and scope of the industry, things would get messy.
2. Total supply: Total supply of tokens in circulation Balanceof: used to get the balance of any given address.
Standards make access to working with new tokens and understanding them much easier. The standard means the language is more universal to new tokens so people can understand them better without having to learn a whole new language just to see if they like them. It makes new tokens more accessible, marketable, and understandable.
balanceOf() tells the balance of any address, transfer() transfers tokens, allowance() tells the number of tokens allowed to be transferred from a given address to another address.
Once a standard is set, multiple developers can develop on that platform and have a common language to do so.
1- The benefits of setting a token standard like ERC 20 allow wallets and exchanges to be programmed to support any token.
2- total supply, fungible token, allowance, balance, and transfer.
Setting a token standards prevents fragmentation by allowing all tokens creators to use a common naming system in their code.
totalSupply() gives total number of tokens in circulation
balanceof(address account) gives the balance of a public address of ERC20 tokens
transfer() is to transfer ERC20 tokens from message sender to receiving address
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.
The benefits of setting a token standard is to define a parameter for communication in the network that all computers are able to understand one another.
Functions that are able to observe complex amounts of data are in the interface and are able to be used in commands to simplify instructions.
Efficiency. By implementing some standarts, the wallets and exchanges can be compatible with all tokens that use erc20 from the getgo.
balanceOf (shows funds of a particular account)
total supply (how many tokens are there in total)
transfer (move funds to another account)
transferFrom
approve ( Allows other accounts to withdraw a certain amount of ABC token from the account executing the function)
allowance (shows how many tokens are allowed to be transfered)
Hello sir, did you forgot to type the answer to the 2nd question?
If you have any doubt, please let us know so we can help you!
Carlos Z.
2. What functions are in the ERC20 Token Standard Interface and what do they do?
Hello sir(s), could you please describe a little bit more what every function does exactly?
If you have any doubt, please let us know so we can help you!
Carlos Z.
a) balanceOf() function provides the number of tokens held by a given adress.
b) transfer() function transfers a number of tokens directly from the message sender to another address.
c) The allowance() function provides the number of tokens allowed to be transferred from a given address by another address.
d) approve() a token holder gives another address approval to transfer up to a certain number of tokens.
e)doSomething() to operate instructions.
d) transferFrom() take certain tokens from senderās account and carry on its work.
1.Standards in code simplify the tokens support of wallets and exchanges quickly after their release.
2.All ERC20 token have a standardized totalSupply function, a further important function is the balanceOf(address account) which makes it possible to control the wallet balance of an ETH address.
I wasnāt confident in answering that questions so I left it alone. I understand there is the totalSupply function and the parameters that encompass the smart contract but, Iām still pretty fresh to the concepts.