truffle 的geth

进入geth以后创建新的账户

参考http://blog.csdn.net/CHENYUFENG1991/article/details/53458175?locationNum=7&fps=1
进入geth

geth –identity “newEth” –rpc –rpccorsdomain “*” –datadir “./cdata” –port 30303 –rpcapi “db,eth,net,web3” –networkid 999 console

eth.accounts
[]

eth.accounts
[“0x9a647332df73cf582fce51ac2b2551d110218040”]
personal.newAccount(‘123456’)
“0xa0e8cf6b1b9b3e2638e823ff4c56ccbb2daf1dc7”
eth.accounts
[“0x9a647332df73cf582fce51ac2b2551d110218040”, “0xa0e8cf6b1b9b3e2638e823ff4c56ccbb2daf1dc7”]
user1=eth.accounts[0]
“0x9a647332df73cf582fce51ac2b2551d110218040”
user2=eth.accounts[1]
“0xa0e8cf6b1b9b3e2638e823ff4c56ccbb2daf1dc7”
geth.start()^C

usr1=eth.accounts[0]
“0x414d9703aa1c26115dc2cdabe225db3bedc7a91f”

usr2=eth.accounts[1]
“0x2b08b524d7b8e6190f07d30c0e45dd1971437264”
eth.getBalance(usr1)
0
eth.getBalance(usr2)
0


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部