Ethereum: Using the wallet with a private geth knot – Code Trickle
Today I desired to share the steps I go after to use the Ethereum wallet with a private blockchain te a development environment. This article goes after on from previous articles where a local blockchain wasgoed setup using geth . For my dev environment I&rsquo,ll be using Ubuntu 16 running on VirtualBox te Windows Ten.
Check out thesis previous articles which describe setting up the dev environment and other devices I&rsquo,ll be using:
(Optional) Update Geth
This step may be optional depending on your situation. If you&rsquo,ve had geth running te a dev environment for a while then it&rsquo,s worth checking if a newer version is available.
Check your current geth version by opening a terminal and typing:
You should see something like the below:
The stable version available at time of writing is 1.6.7.
StackExchange has a nice response on updating Nevel on Ubuntu which helped mij with the next part:
Lastly, validate that geth wasgoed updated successfully:
You should see output similar to below confirming the version installed spil 1.6.7-stable
Install the Ethereum Wallet
Next you&rsquo,ll need to download the Ethereum Wallet if it&rsquo,s not already installed on your machine.
Open a fresh terminal and type:
Wait until the download is accomplish and you&rsquo,ll see something like this:
Unzip the downloaded verkeersopstopping and cd into the freshly created directory:
The fresh directory named /linux-unpacked should contain several files, including the ethereumwallet executable.
Now onto more delicious stuff. Wij&rsquo,ll need to begin geth using a custom-made gegevens directory. You can use the same setup spil described te my article here. If you don&rsquo,t have a private blockchain created already then check the article and proceed from here.
Open a fresh terminal window and switch into the directory that contains privchain . This is the directory containing the private blockchain.
For mij the directory is named /geth/privchain so cd into directory /geth :
Now wij&rsquo,ll begin geth . The go-ethereum wiki at GitHub has a nice reference for geth&rsquo,s instruction line options that I encourage you to explore.
After commencing the geth knot you should see something like IPC endpoint opened: /huis/someone/.ethereum/geth.ipc
Leave geth running ter this terminal window.
Launch the Etherum Wallet
Back ter the very first terminal you should still be te the linux-unpacked directory.
Run the Ethereum wallet by typing the below:
This next part I honestly couldn&rsquo,t figure out – the wallet will commence downloading the geth binary, even however wij don&rsquo,t need it. I wasted a loterijlot of time but couldn&rsquo,t resolve this, and ter the end just let it run. The output looks like this:
The unwanted geth binary is downloaded to /huis/someone/.config/Ethereum Wallet/binaries/ .
When the wallet has finished downloading geth it should proceed to detect the running geth knot and connect. The output should look like this:
If instead you see something like the below, succesnummer Ctrl+C to abandon the wallet, otherwise you&rsquo,ll embark to sync the actual Ethereum blockchain.
When this happens (and assuming this is for DEV purposes only and doesn&rsquo,t matter if you pauze/lose anything) simply delete the created directory Ethereum Wallet to reset:
Note that .config is hidden by default but it can be made visible ter Unbuntu Files by hitting Ctrl+H or from the top menukaart View >, Showcase hidden files.
The Ethereum Wallet
By now hopefully you are looking at the Ethereum Wallet splash screen
It will say Looking for peers but shouldn&rsquo,t find any since wij&rsquo,re running a private blockchain with a single geth knot.
On the wallet splash screen click LAUNCH APPLICATION
Now the wallet GUI will launch. There&rsquo,s a few things to note here:
- Wij&rsquo,re connected to PRIVATE-NET with 0 peers, exactly spil wij&rsquo,d expect
- The current block number is 22 (my blockchain is very youthful)
- The balance is 110 Ether
- The last block wasgoed mined on this chain a while ago (Five months ago)
Open a fresh termainal and come in:
You should get a prompt where you can type directions.
Type the below check the default address:
Wij can also check the balance te Ether:
Lastly wij&rsquo,ll display the current block number and it&rsquo,s hash:
This should match the values displayed te the Wallet GUI.
Ter the next article wij&rsquo,ll use the Ethereum wallet to deploy a ordinary contract token to the private blockchain.