-
The benefits of using a standard are that all applications on the ETH network work from the same set of rules. ERXC20 allows a user to create Non Fungible Tokens.
-
ERC20 attributes;
-name- the title of the contract.
-symbol- broadly equivalent to a stock ticker, usually 3-4 characters all though no restrictions.
-decimals- how divisible a token can be; 0(not divisible)-18 (almost continuous). It is the number of digits that are after the decimal place when displaying token values. This can be a âhumanizing factorâ because it allows token contracts to define how they would like balances to be displayed to users. If the token represents an indivisible entity, such as a software license, the decimals are set to 0. If there are a fixed number of decimal places, set decimals to that number. If neither apply set decimals to the default 18. Total tokens = number of tokens x 10^(to the power of) decimals.
-totalsupply The only mandatory parameter. The sum of all balances.
Functions of an ERC20 contract allow users to check and transfer balances of accounts under varying conditions.
-balance0f() provides the number of tokens held by an address. Anyone can query the addressâ balance as the blockchain is public.
-transfer() Transfers tokens from the message sender to another address. There are no checks made on the recipient address, so the sender must ensure the address is correct. This is fine for sending tokens between users, it does not work well when used to pay for a function in a Smart Contract. The SC has no information about where the funds were sent from.