Skip to content

Instantly share code, notes, and snippets.

@dyerrington
Last active January 3, 2018 20:20
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 dyerrington/44de65f1a5a22209f7237794bad019cd to your computer and use it in GitHub Desktop.
Save dyerrington/44de65f1a5a22209f7237794bad019cd to your computer and use it in GitHub Desktop.
Helpful eth snippets. I will update these through my evolution of understanding about Etherium.

Attach to console

After running geth for a while, I found that I could no longer attach to a running session. The message I encountered was Fatal: Unable to attach to remote geth: Timed out waiting for pipe '\\.\pipe\geth.ipc' to come available. I was able to resolve this by attaching to the RPC (?) endpoint.

geth attach http://127.0.0.1:8545

Check balance

Logging into the console (attach to a running session), to get current amount of Ethereum:

web3.fromWei(eth.getBalance(eth.coinbase), "ether")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment