geth js console

> eth.accounts
["0xf7415e627cf094413687e93d1d1c0367e5110824", "0xe3a4fbc2b80b53f055ef3ab689fbaa89d00b1cb5", "0x799decd83a86f9a13cf66e0ba93e7d62855389a5"]
> eth.coinbase
"0xf7415e627cf094413687e93d1d1c0367e5110824"
> eth.getBalance(eth.coinbase)
150000000000000000000
> web3.fromWei(eth.getBalance(eth.coinbase), "ether")
160
> web3.fromWei(eth.getBalance(eth.coinbase), "ether")
200
> miner.stop()
null
> miner.start(5)
null
> net.version
"9999"
> personal.unlockAccount(eth.accounts[1], "pass1234", 300)
true
> eth.getBalance(eth.accounts[1])
0
> eth.sendTransaction({from: eth.co
eth.coinbase eth.compile eth.constructor eth.contract
> eth.sendTransaction({from: eth.coinbase, to: eth.accounts[1], value: web3.toWei(10, "ether")})
"0xe827793ca91070bc924cae20372a393c65becf87d377d30d6808c21c2b5511af"
> eth.getBalance(eth.accounts[1])
10000000000000000000
> eth.getBalance(eth.accounts[2])
0
> eth.sendTransaction({from: eth.coinbase, to: eth.accounts[2], value: web3.toWei(10, "ether")})
"0xd49e8567c6e85e1aaa509a511b64d72778e133d1e756fc413bca404b92167292"
> eth.getBalance(eth.accounts[2])
0
> eth.getBalance(eth.accounts[2])
10000000000000000000
> eth.getBalance(eth.accounts[2])
10000000000000000000
> eth.getBalance(eth.accounts[0])
434000000000000000000

Leave a Reply

Your email address will not be published. Required fields are marked *