部署以太坊智能合约(Hello World)

以太坊(Ethereum)是一提供个智能合约(smart contract)功能的公共区块链平台。在以太坊上开发应用,首先需要安装其客户端基于Go语言的Geth, 官网为:https://github.com/ethereum/go-ethereum。

1.进入命令行窗口

2.在命令行窗口输入

geth --datadir "E:\geth\devchain" --dev console

输入命令后,它会在指定目录下存放数据

C:\Users>geth --datadir "E:\geth\devchain" --dev console
INFO [11-26|14:25:03.001] Maximum peer count                       ETH=50 LES=0 total=50
INFO [11-26|14:25:08.333] Using developer account                  address=0x823356EF65d2f7004a15368f18cb5964F1f28bd9
INFO [11-26|14:25:08.574] Starting peer-to-peer node               instance=Geth/v1.9.6-stable-bd059680/windows-amd64/go1.13
INFO [11-26|14:25:08.837] Allocated trie memory caches             clean=256.00MiB dirty=256.00MiB
INFO [11-26|14:25:10.175] Writing custom genesis block
INFO [11-26|14:25:10.291] Persisted trie from memory database      nodes=11 size=1.67KiB time=0s gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [11-26|14:25:10.365] Initialised chain configuration          config="{ChainID: 1337 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0 Engine: clique}"
INFO [11-26|14:25:10.420] Initialising Ethereum protocol           versions=[63] network=1337 dbversion=<nil>
WARN [11-26|14:25:10.425] Upgrade blockchain database version      from=<nil> to=7
INFO [11-26|14:25:10.780] Loaded most recent local header          number=0 hash=9f0eb4…1822a6 td=1 age=50y7mo2w
INFO [11-26|14:25:10.883] Loaded most recent local full block      number=0 hash=9f0eb4…1822a6 td=1 age=50y7mo2w
INFO [11-26|14:25:10.932] Loaded most recent local fast block      number=0 hash=9f0eb4…1822a6 td=1 age=50y7mo2w
INFO [11-26|14:25:10.979] Regenerated local transaction journal    transactions=0 accounts=0
INFO [11-26|14:25:11.579] Allocated fast sync bloom                size=512.00MiB
INFO [11-26|14:25:11.713] Initialized fast sync bloom              items=11 errorrate=0.000 elapsed=9.985ms
INFO [11-26|14:25:15.374] Stored checkpoint snapshot to disk       number=0 hash=9f0eb4…1822a6
INFO [11-26|14:25:18.258] started whisper v.6.0
INFO [11-26|14:25:18.489] New local node record                    seq=1 id=502f3b6c782c5e42 ip=127.0.0.1 udp=0 tcp=52422
INFO [11-26|14:25:18.515] Started P2P networking                   self="enode://9a94b0762370d1ab0e1e8de35d5d0256c980db27430c3923030d2f1cd05fc7d4323808d4b5fff87cb40ec4fa49bdb262dcd846b6bdbcbd8930f50e163ffd46b4@127.0.0.1:52422?discport=0"
INFO [11-26|14:25:20.882] IPC endpoint opened                      url=\\\\.\\pipe\\geth.ipc
INFO [11-26|14:25:21.060] Transaction pool price threshold updated price=1000000000
INFO [11-26|14:25:21.223] Transaction pool price threshold updated price
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值