Skip to content

Instantly share code, notes, and snippets.

@jbarros35
Last active April 11, 2018 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbarros35/3a3f9104cf7bfe361fc9bdbe4a945a02 to your computer and use it in GitHub Desktop.
Save jbarros35/3a3f9104cf7bfe361fc9bdbe4a945a02 to your computer and use it in GitHub Desktop.
Geth useful commands
#create new node with json genesis
geth --datadir ./myDataDir --networkid 1114 init ./myGenesis.json console 2>> myEth.log
#start geth for ws without ipc support
nohup geth --datadir ./myDataDir --networkid 1114 --ws --wsorigins="*" --wsapi "db,eth,net,ssh,miner,web3,personal,admin" --rpc --rpcapi "web3,eth,personal,miner,net,txpool" --rpccorsdomain "*" --ipcdisable &
#geth attach without ipc
geth attach http://localhost:85451
#geth transfer
var tx = {from: "fromacc", to: "toacc", value: web3.toWei(value, "ether")}
personal.sendTransaction(tx, passphrase)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment