Skip to content

Instantly share code, notes, and snippets.

@adilmezghouti
Last active March 12, 2018 21:32
Show Gist options
  • Save adilmezghouti/fd679f44c34515ab327d3e38c69a7c44 to your computer and use it in GitHub Desktop.
Save adilmezghouti/fd679f44c34515ab327d3e38c69a7c44 to your computer and use it in GitHub Desktop.
useful commands to get the ethereum environment to work locally
//to run geth client
geth --datadir=./chaindata/ --rpccorsdomain "*" --rpc --rpcport "8585" --rpcaddr 0.0.0.0 -rpcapi="db,eth,net,web3,personal,web3"
//start the interactive geth shell
geth attach /Users/adilmezghouti/development/ether-lab/chaindata/geth.ipc
//make the geth command available system wide
export PATH="/Users/adilmezghouti/development/geth-alltools-darwin-amd64-1.7.2-1db4ecdc:$PATH"
//Initilaize the local ethereum node
geth --datadir=./chaindata/ init genesis.json
//start up the Mist application on mac - we need to pass in the path to the ipc file for this to work on mac
alias mist="/Applications/Mist.app/Contents/MacOS/Mist --rpc /Users/adilmezghouti/development/ether-lab/chaindata/geth.ipc"
//To run the ethereum node in-memory
npm install -g ethereumjs-testrpc
//to use the same account
testrpc -m "message"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment