Learning Diary: Create own Erc-20 token, 学习笔记, 创造自己的ERC-20 token

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@fundurian·
0.000 HBD
Learning Diary: Create own Erc-20 token, 学习笔记, 创造自己的ERC-20 token
![Screen Shot 2018-01-25 at 11.13.39 PM.png](https://steemitimages.com/DQmYk7hfNTGQJtSL9hE27o31VinHy6usyGpPEteqqtknEvq/Screen%20Shot%202018-01-25%20at%2011.13.39%20PM.png)

Hello Steemit friends, I just wondering how tough is it to create my own ERC-20 token and once i google it I discover someone already prepared a tutorial

https://steemit.com/ethereum/@maxnachamkin/how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified

I am very shocked that it is extremely simple

basically you just
1. Copy the existing code into https://ethereum.github.io/browser-solidity/

2. Change 7 place
contract FundurianToken
function FundurianToken(
        ) {
        balances[msg.sender] = 100000000000;              
        totalSupply = 100000000000;                       
        name = 'FUNDURIAN TOKEN';                                  
        decimals = 5;                           
        symbol = 'FUN';                              
    }

3. Choose newest compiler then click create, metamask will ask for confirmation, press submit

4. Afterward you will have your contract address, then you can go to metamask there and add token, put in the contract address you can see your own created token

Suddenly I have a million coin, it is so fun

(Of course I am just using test net, using main net is a waste of real money)

you can see my contract on the test net below:
https://ropsten.etherscan.io/token/0xbf3d663bd199cd4d60827e812dcbca3147aa28db

thanks for reading

***

心血来潮,看看能不能也创造自己的ERC-20 token来玩玩呢?后来一google,就发现有人已经发布了教程,而且超简单的

https://steemit.com/ethereum/@maxnachamkin/how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified

主要是
1。先把已经完成的代码放入https://ethereum.github.io/browser-solidity/
2。改7个地方,

contract FundurianToken
function FundurianToken(
        ) {
        balances[msg.sender] = 100000000000;              
        totalSupply = 100000000000;                       
        name = 'FUNDURIAN TOKEN';                                  
        decimals = 5;                           
        symbol = 'FUN';                              
    }

3。选最新的compiler然后按Create, metamask会叫你给钱,然后就按submit

4。好了后就拿到contract address了,然后就可以在metamask哪里add token,放contract address就看到自己create的token了

一下子就变百万富翁了,真好玩

(我当然是用testnet,用mainnet白白给钱就浪费了)

可以看到我在testnet创的fundurian token
https://ropsten.etherscan.io/token/0xbf3d663bd199cd4d60827e812dcbca3147aa28db

谢谢阅读
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,