Standard which makes it easy for exchanges and wallets to access
funktion total supply- how many tokens there are
funktion balance of - how many tokens on the balance
Standard which makes it easy for exchanges and wallets to access
funktion total supply- how many tokens there are
funktion balance of - how many tokens on the balance
Efficiency, interoperability
balanceOf(): provides the number of tokens held by a given address.
transfer(): transfers a number of tokens directly from the message sender to another address. But it doesn’t work well when tokens are being used to pay for a function in a smart contract.
approve(): a token holder gives another address approval to transfer up to a certain number of tokens(allowance).
transferFrom(): take certain tokes from sender’s account and carry on its work.
doSomething(): to operate instructions.
allowance(): provides the number of tokens allowed to be transferred from a given address by another given address.
Using token standards like ERC-20 is beneficial because it reduces friction in the industry and allows more rapid innovation and adoption.
The ERC-20 token standard interface includes functions like totalsupply() and accountOf() which allow wallets and exchanges to talk to new tokens from the day they are released. They can be adopted without any time consuming changes thereby reducing barriers to entry.
1.Benefits for ERC20 allow wallets,exanges to easily add all erc20 tokens as they have common name in the code.
2.Contract address, total supply of tokens, name,symbol and number of decimal places…
What are the benefits of setting a token standard like ERC20?
A: So all developers develop tokens using the same specific coding instead of each token having its own individual programming code…
What functions are in the ERC20 Token Standard Interface and what do they do?
A: balance of accounts & total supply of tokens.
Setting a token standard allows wallets and exchanges to easily interact with each token. It also propels the total ecosystem and makes it easier to code.
An example of functions would be “totalsupply” Total number of tokens in existence.
“balanceOf” the amount of tokens in an account “symbol” the ticker symbol “allowance” the number of tokens available to be transferred from one account “transfer” moving tokens from one account to another
What are the benefits of setting a token standard like ERC20?
First benefit is that every token works on the same structure, so they can interact with each other. All Ethereum wallets/exchanges can immediatelly accept ERC20 tokens aswell.
What functions are in the ERC20 Token Standard Interface and what do they do?
Totalsupply, Balanceof, transfer,approve,allowance,transferFrom
What are the benefits of setting a token standard like ERC20?
Standard make use of token compatible on different exchanges or wallet or Dapps etc.
What functions are in the ERC20 Token Standard Interface and what do they do?
They perform different task like creating a new transection, sending money, checking for the balance etc.
When you have a standard, it facilitates communication with other applications, the same wallet can support different tokens.
An example is balanceof, that shows how many tokens you have.
What are the benefits of setting a token standard like ERC20?
The benefit of setting a token standard like ERC20, is so that there’s easy communication between different places, allowing interoperability,
What functions are in the ERC20 Token Standard Interface and what do they do?
*balanceOf()
function provides the number of tokens held by a given address
transfer()
function transfers a number of tokens directly from the message sender to another address
allowance()
function provides the number of tokens allowed to be transferred from a given address by another given address
The benefit of setting standards in networks is to create less friction. The standards make it easy for any developer to create a token, in the case of the ERC 20 standard. This means that any other dapp or wallet can easily integrate the token without having to worry about the syntax of the function.
The function that are in the ERC 20 token standard are:
function totalSupply() public view returns (uint256) //this creates the total supply of tokens in the smart contract
function balanceOf(address _owner) public view returns (uint256 balance) //this one will show the balance of the wallet
function transfer(address _to, uint256 _value) public returns (bool success) //this function is used to transfer tokens to an address, which will fire the event “transfer” and return a successful event if the address has the value in the wallet.
balanceOf() - the number of tokens in a given address.
transfer() - will transfer tokens from one address to another.
transferFrom() - invoked to perform the transferring of funds by another address.
approve() - the permission smart contracts are given to use the necessary funds needed to perform requested operations.
allowance() - is the maximum amount that’s allowed to be transferred by another address via the approve() function.
interoperability, keeps network friction low, wallets can communicate in same standard for each ERC20 token
balance: provides # of tokens held in address
transfer: send tokens from one address to another
allowance: # of tokens allowed to be transferred
What are the benefits of setting a token standard like ERC20?
With setting a token standard like ERC20 token, there will be less friction in the space to get programs to talk to each other. Thus allowing the on boarding process for exchanges and wallets for different tokens to be extremely efficient for the entire space.
What functions are in the ERC20 Token Standard Interface and what do they do?
The functions on an ERC20 token are; (1)Account Balances which represent a value that is defined by the contract creator. (2)Transfers - tokens are transferred from one account to another and the token contract updates the balance of the two accounts. (3) Total Supply - Shows the total supply of the tokens in the contract, it can also change the total supply in two ways either by minting (increasing token supply) or burning(decreasing supply).