Last active
March 13, 2016 14:03
-
-
Save mingderwang/67c0ca182a991e886f3c to your computer and use it in GitHub Desktop.
Geth install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geth install: https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum | |
________________________________________________________ | |
create network: | |
______________ | |
geth --datadir="/home/mwang/gethprivate/datadir" -verbosity 1 --port 30301 --networkid "25" --rpc --rpcport 8101 --genesis /home/yann/gethprivate/genesis/testgenesis.json --ipcpath <IPCPATH> console | |
genesis.json: https://gist.githubusercontent.com/mingderwang/0653ffa6f44f143bf7c2/raw/6bcfedeccbd587e3f43fac6d5ae86a4a2fd3b272/genesis.json | |
_____________ | |
<IPCPATH>: | |
OSX: <HOME>/Library/Ethereum/geth.ipc | |
Linux: <HOME>/.ethereum/geth.ipc | |
WIN32: \\\\.\\pipe\\geth.ipc | |
________________________________________________________ | |
join network: | |
_____________ | |
boot node: | |
enode://e3bc037132a3eadfe548765eadf718944a317f2b7db9c157e21f649eaabf761ffb485c007daf188c5f755e41f243b1c8b4330fbf98714588385601940a46b3c3@10.10.42.109:30301 | |
admin.addPeer("enode://e3bc037132a3eadfe548765eadf718944a317f2b7db9c157e21f649eaabf761ffb485c007daf188c5f755e41f243b1c8b4330fbf98714588385601940a46b3c3@10.10.42.109:30301") | |
________________________________________________________ | |
commonly used commands: | |
______________________ | |
personal.unlockAccount(eth.accounts[0], "<password>", 1000000) | |
web3.eth.getStorageAt("0xf1151e1057a1ab61a927fc75624af94cf4d9fac4", 0) | |
web3.eth.getCode("0x544f9afd3b73970f22fc0167bb41af2d51839d17") | |
web3.eth.getBalance("0xce1e1a564f732e9d5cebfa9a41b76e58475d0ebc") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment