https://github.com/yangwao/ethereum-docker
ethereum starter pack
https://github.com/yangwao/ethereum-docker
Last synced: 3 months ago
JSON representation
ethereum starter pack
- Host: GitHub
- URL: https://github.com/yangwao/ethereum-docker
- Owner: yangwao
- License: mit
- Created: 2017-11-04T13:48:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-04T14:11:43.000Z (over 7 years ago)
- Last Synced: 2024-12-29T04:28:46.780Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ethereum-docker
ethereum docker nodes for development
if you want to touch real transactions on testnets, like privateChain (devchain) or Rinkeby and not wanna use `truffle develop` or `testrpc`### rinkeby
incl light and full node for rinkebyflight control
```bash
docker-compose up fullnode
```### privateChain
bootstrap node, eth and monitoring node```bash
docker-compose up -d
```### handy copy pasta tricks
```bash
geth --password /root/.accountpassword account list
geth --password /root/.accountpassword account newdocker exec -it eth_fullnode_1 geth attach ipc://root/.ethereum/rinkeby/geth.ipc
```
### web3
```javascript
miner.start()
miner.stop()personal.newAccount("password")
eth.coinbase
eth.getBalance(eth.coinbase)
personal.unlockAccount(eth.coinbase, 'password', 10000)personal.unlockAccount('0x007ccffb7916f37f7aeef05e8096ecfbe55afc2f', '', 10000)
var sender = eth.accounts[0];var receiver = eth.accounts[1];var amount = web3.toWei(0.01, "ether")
eth.sendTransaction({from:sender, to:receiver, value: amount})```
### useful snippets
https://ethereum.stackexchange.com/questions/2531/common-useful-javascript-snippets-for-geth/3478