终于到了区块链发币教程了,一直期待着,在区块链里币就是硬通货所以学会发币则代表着,你有割韭菜的初步技术了。哈哈!开个玩笑。今天这个课程有点难度,那么废话不多说直接开始!
发币前准备
在进行发币前首先要准备浏览器插件,小狐狸钱包,ETH账号地址一个,合约文件3个合约文件获取地址,下载到本地
三个文件中EIP20Factory.sol要修改几个参数如下图:
图中4个红圈参数从左到右依次为:
1.代币数量
2.代币名称
3.代币位数(此参数与参数与共同作用决定代币数量及小数点位数,如果代币要发10000个,小数点保留2位,那么第一个参数要输入 1000000)
4.参数是符号
修改好后保存。
零成本发币
因为是作业,首次体验发币,所以本着成本越低越好的原则,所以我选择测试链发币。首先找到火币测试链领取HT,测试链领HT地址:https://scan-testnet.hecochain.com/faucet ,打开地址后显示如下界面
转红框处输入你的钱包地址,也就是ETH地址,输入完成后点击确认弹出如下界面:
按照界面提示,点击图标进行身份验证,跳转到GitHub,没有GitHub的同学建议注册一个。
点击Sign In,跳转到授权页:
点击红框处授权按钮,授权成功跳转回火币测试链
再次点击确定按钮,成功后会自动跳转到如下界面:
成功领取到0.5个HT,查看小狐狸钱包是否领取成功。
这里我居然有1.98个.因为我之前有用火币链玩过测试游戏,所以这里多了一些。
真正的发币要开始了
我们使用remix发币,打开网址remix
将图中红圈处的内容全部删除,删除方法是文件夹上点右键。清除完成后上传我们准备的三个文件。
点击红圈处的上传本地文件按钮。
选择全部,点击打开,效果如下图:
文件上传成功,然后选中EIP20Factory.sol,点击左侧红圈处的按钮,准备编译文件,进入如下界面
图中红圈处要选择与右侧版本号一致的选项。确认无误后点击下方的Compile按钮
编译完成 后左侧多出来了一个绿色√符号的角标代表编译完成。然后点击左侧第三个菜单。
进入后,左侧第一个下拉框选择injected web3,这时会链接你的小狐狸钱包,授权即可,授权后点击deploy按钮。
这里报了一个错,检查一下配置
发现,CONTRACT选择错误。我们这里切换成图中红圈处的选项。再次点击Deploy,这次就弹出小狐狸确认框了。
这时点击确认。确认后Remix出现如下图中的信息
代表合约创建完成,这时我们到小狐狸去检查一下。
打开小狐狸,点击活动,看到合约部署,我们点击打开如下界面
点击图中红圈处,去火币测试链浏览器查看交易信息。打开如下图:
点击红圈处的合约,去部署代币,点击后如下图:
然后点击图中红框处Contract,打开如下:
然后点击图中红圈处去部署代币,代开如下图:
这里的选项按照图中方式选择,然后点击continue按钮,到如下界面
点击Step1 选择之前的3个文件,然后点击Step2 的上传按钮,过一会
然后我们进行谷歌人机身份验证,最后点击verify and Publish按钮,跳转如下:
出现图中信息说明代币发布成功了。点击红框处的合约地址跳转如下:
点击图中红圈处,打开如下
这时看到我们之前设置的代币信息了,点击红圈处 :
图中显示了代币信息,及合约地址,这时我们拷贝合约地址去小狐狸中添加:
点击添加代币,打开如下
填入合约地址,然后点击下一步
点击添加代币,最后回到小狐狸钱包首页
至此 整个发币过程就完成了,这个发币方式比教授课程里提供的一键发币方式要复杂很多,但是无奈我现在打不开教授提供的网站,所以只能选择这个方式完成作业,虽然累点,但是好在发币成功了,并且是在测试链中发币,所以没有实际的成本。
{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:00:40","end":"2021-09-28 13:00:40","body":"第一个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
awesome !shop
[WhereIn Android] (http://www.wherein.io)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
程序猿就是不一样啊!牛逼特斯拉!
!shop
[WhereIn Android] (http://www.wherein.io)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
你好鸭,boylikegirl!
@zhangyan-123给您叫了一份外卖!
Cold Pot
吃饱了吗?跟我猜拳吧! 石头,剪刀,布~
如果您对我的服务满意,请不要吝啬您的点赞~
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
点评:
学员@boylikegirl ,当前声望61,本期课程所参与的课后作业内容为“学习加密货币的发行方式并通过实际行动发行加密货币”。无论是当前声望还是所编写的作业文章均符合本期课程的参与要求。
在当前中的作业文章中,学员@boylikegirl 选择了基于HECO测试网络进行加密货币的发行,所发行的加密货币为boylikegirl ,总量为1亿。整个加密货币的发行因为是基于HECO测试网且获取了免费的HT,真正做到了零成本发行加密货币。
优点:
缺点:
建议:
打分:「满分10」
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
厉害了!学习,学习。!shop
[WhereIn Android] (http://www.wherein.io)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
你好鸭,boylikegirl!
@lovelingling给您叫了一份外卖!
埃塞的果汁
吃饱了吗?跟我猜拳吧! 石头,剪刀,布~
如果您对我的服务满意,请不要吝啬您的点赞~
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@tipu curate 2
真是厉害
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
谢谢。教授教程也起了很大作用。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 12:49:12","end":"2021-09-28 13:39:15","body":"","first_block":"5577445","end_block":"5578445","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 12:51:27","end":"2021-09-28 12:51:28","body":"第一个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"title":"第一个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 12:52:02","end":"2021-09-28 12:52:02","body":"第一个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
你好鸭,boylikegirl!
@alpha-omega赠送1枚SHOP币给你!
目前你总共有: 38枚SHOP币
查看或者交易
无聊吗?跟我猜拳吧! **石头,剪刀,布~**SHOP币
请到 steem-engine.net.Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"title":"第二个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:02:05","end":"2021-09-28 13:02:05","body":"第二个提案","first_block":"5577454","end_block":"5577454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"title":"第二个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:03:17","end":"2021-09-28 22:13:19","body":"第二个提案","first_block":"5577454","end_block":"5588454","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"title":"第三个提案","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","network":"5","type":"proposal","start":"2021-09-28 13:08:52","end":"2021-09-28 21:28:54","body":"第三个提案","first_block":"5577524","end_block":"5587524","strategies":"[\n {\n "strategyControlId": "jGHpUolwO4HgjaqWPd_XC",\n "strategyKey": "erc20-balance-of",\n "strategyParams": "{\n \"address\": \"0x3C372284875566209Be2995c433913bE792CaFa4\",\n \"symbol\": \"BLG23\",\n \"decimals\": 18\n}",\n "strategies": {\n "name": "erc20-balance-of",\n "params": {\n "address": "0x3C372284875566209Be2995c433913bE792CaFa4",\n "symbol": "BLG23",\n "decimals": 18\n }\n }\n }\n]","threshold":1,"blockNumber":0}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"c9lnkyska3i","voteType":1,"voteScore":5}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"c9lnkyska3i","voteType":0,"voteScore":6}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"35poq09fg6w","voteType":1,"voteScore":6}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0xd9f4985a73349dea9acb7c424e35056714ba2b35","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"35poq09fg6w","voteType":0,"voteScore":112}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0xecb4418967ba6b2695efa752dd0b6332412fe745","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"543d6uewyuq","voteType":1,"voteScore":5}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"543d6uewyuq","voteType":0,"voteScore":6}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
{"id":"","ipfs":"","userId":"0x07b40d4474cff5301c078ad35ebb9409359b4516","created":"","communityId":"0xa7637ac672e04eD7823039874A71107224DB0746","proposalId":"anp5xhc6il","voteType":1,"voteScore":6}
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit