进入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