Skip to content

Instantly share code, notes, and snippets.

@andruschak
Created November 22, 2017 04:49
Show Gist options
  • Save andruschak/e9accb754107c7efb331d116d668dcf6 to your computer and use it in GitHub Desktop.
Save andruschak/e9accb754107c7efb331d116d668dcf6 to your computer and use it in GitHub Desktop.
Playing with Ethereum
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
screen geth --rinkeby
screen geth --datadir=$HOME/.ethereum/rinkeby attach ipc:$HOME/.ethereum/rinkeby/geth.ipc console
#############################################################################################################
Welcome to the Geth JavaScript console!
instance: Geth/v1.7.3-stable-4bb3c89d/linux-amd64/go1.9
coinbase: 0x4e4ec5f41ca5de2f85062fd1b76cf6bc45ecf97e
at block: 0 (Wed, 12 Apr 2017 08:59:06 MDT)
datadir: /home/tyler/.ethereum/rinkeby
modules: admin:1.0 clique:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
> eth.accounts
[]
>
> personal.newAccount("YourSecretPass")
"0x4e4ec5f41ca5de2f85062fd1b76cf6bc45ecf97e"
>
> eth.coinbase
"0x4e4ec5f41ca5de2f85062fd1b76cf6bc45ecf97e"
> eth.getBalance(eth.coinbase)
0
# create public post
https://plus.google.com/106493232931331206653/posts/Vqwc1C9Z3Gr
# then hit up for ether on the test network
https://www.rinkeby.io/#faucet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment