Last active
April 11, 2018 13:18
-
-
Save jbarros35/3a3f9104cf7bfe361fc9bdbe4a945a02 to your computer and use it in GitHub Desktop.
Geth useful commands
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
#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