EOS生态系统怎么发币 5分钟学会用EOS发币【教程】

# 文末附【一键发币】脚本
# 第一步:安装Docker

# 根据操作系统下载相应docker进行配置安装,支持windows 10, Linux, Mac
# https://www.docker.com/community-edition
# install docker (for CentOS)[code][/code]
# 第二步:部署EOS

# pull images
[code][/code]# create dirs for blocks & wallet[code][/code]# create & run nodeos container (Windows需删掉换行符\并在一行内)
[code][/code]# config.ini及区块自动生成在/data/eosio/nodeos-data下
# get logs. ctrl+c to break[code][/code]# create cleos commond alias
[code][/code]# get chain info with cleos[code][/code]
# issue fix: std::exception::what: database dirty flag set (likely due to unclean shutdown) replay or resync required
# issue fix: Failed to start a pending block, will try again later
[code][/code]# 修改nodeos-data下文件后需重启nodeos
# restart nodeos service[code][/code]
# 第三步:发币

# create default key wallet, save password to use in the future to unlock this wallet.
[code][/code]# 钱包文件生成在/data/eosio/keosd-data
# create & import keys[code][/code]
# Private key: 5J5cKtCM7MvC8kUGPyT59xPeK6KUG2waJJQhmNTx1TjjjeR34rd
# Public key: EOS75eHTUgnvzUQt8qgj48kDBLyTQvSqpc6mEjW3pzaYuThqC7Mdw
[code][/code]# setup eosio.bios[code][/code]# setup eosio.token
[code][/code]# create token[code][/code]# issue tokens
[code][/code]# get balance[code][/code]# transfer tokens
[code][/code]# smart contract: hello[code][/code]
# user <= user::hi {“user”:”eosio”}
>> Hello, eosio

# Clear all. stop & remove containers, delete all data
# WARNING: delete nodeos-data will lost config & block files!
# WARNING: delete eosio-wallet will lost all imported keys!
[code][/code]# After clear all, we can start over everything again
# 一键发币!
[code][/code]
# EOS src & wiki: https://github.com/EOSIO/eos
# EOS dev docs: https://eosio.github.io/eos/
# 欢迎收藏本文备用。
# 来源:https://www.zuanbi8.com/eos/40899.html



图片分享

发表评论

电子邮件地址不会被公开。 必填项已用*标注