$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ethereum/ethereum
$ sudo apt-get update
$ sudo apt-get install ethereum solc -y
Install: Mist-linu64-0-11-1.deb
$ mkdir ethereum
$ cd ethereum
$ geth --datadir ~/ethereum/ init ~/ethereum/genesis.json - Inicializar nova base
$ geth --identity "BlockchainX" --datadir ~/ethereum/ --rpc --rpcapi "db,eth,net,web3" --rpcport "8545" --rpccorsdomain "*" --ipcpath ~/.ethereum/geth.ipc --networkid 777
$ geth attach ipc:///home/ubuntu/.ethereum/geth.ipc
> personal.newAccount() # In Docker: personal.newAccount('myNewPassword')
> personal
> eth.coinbase
> admin.nodeInfo
> admin.nodeInfo.enode
> # Example: admin.addPeer('enode://...')
> admin.addPeer('enode://e63333f7b406683cd8a733ff00cfd8c0b81323d34ab1a561a401f6981cd1742bf911de33a8274dcced282473c035cdf035931401bc397d4c97c8b2006e49d500@[172.16.60.122]:30303')
> admin.peers
> net.peerCount
MINERANDO NA REDE INTERNA
> miner.start() // inicia a mineracao (return null)
> miner.stop() // para a mineracao
CHECANDO BALANCE DA SUA CONTA
// eth.coinbase <--- ISTO RETORNA SEU ENDERECO INICIAL QUE FOI CRIADO
> eth.getBalance(eth.coinbase)
> var balance = eth.getBalance(eth.coinbase)
> web3.fromWei(balance, "ether")
> web3.fromWei(eth.getBalance("0xb4244efD1b99340d935FAAAf5316d11e4E1921eb"), "ether")
honey move tube credit ozone toilet goat wreck small grocery just dumb
$ docker build -t "ethereum" .
$ docker container run --name ethereum -d -p 8545:8545 -p 30303:30303 ethereum
$ docker exec -it ethereum geth attach ipc:///usr/local/src/.ethereum/geth.ipc
> Mist.exe --rpc http://<ip>:8545