Starting With Ethereum: Setup
Starting With Ethereum: Setup
In this post, we take a look at how to get Ethereum and an Ethereum wallet up-and-running from a developer's perspective.
Join the DZone community and get the full member experience.Join For Free
Many people know about Bitcoin, because of its recent rise (and soon crash?). However, Bitcoin is just a currency, albeit a crypto one. As such, it's of very limited interest to me. But it's based on the concept of blockchain and that seems to be much more interesting. While there are a lot of resources available on the Web regarding blockchain, they mainly focus on the concept of blockchain, or how it works internally, not so much on how you can as a developer use it.
This is the first post in what I hope will be a series which aims at correcting that. The blockchain implementation I'll be using will be Ethereum because it's an already established technology, with a mature ecosystem around it.
This post will describe how to set up the whole tooling around Ethereum, and lay the foundations of the posts to come.
The wallet is the first step when you want to start working with Ethereum. It's called a wallet because it does hold the Ethereum currency - called ether. It also holds other custom assets - called tokens.
Ethereum provides such a wallet, just download it from the homepage. This software also allows you to deploy and run smart contracts.
Once installed, launch the application. A network needs to be chosen: choose "Rinkeby" which is a test network. At this point, the blockchain is copied locally. Wait...
Then, an account needs to be created. Choose a password.
Whatever your stance regarding it, money is at the foundation of the world. In Ethereum, this is no different. On the production network, you'd need to buy ether from a broker. On "Rinkeby," which is a playground network, one can just ask for ether.
Go on https://faucet.rinkeby.io and follow the instructions to receive ether. You basically have to post your wallet public key on a social network - to prevent abuse. The rate by which one can ask for ether is also limited, to prevent abuse.
Funds should be available soon after the post has been published on the social network of your choice. Check your account, you should be richer.
- 3 ethers every 8 hour
- 7.5 ethers per day
- or 18.75 ethers every 3 days
The balance can also be checked on etherscan.io. Just replace the last segment of the URL path with your account public key.
Chances are you will have multiple computers, or you will change computers, or even change software. As such, it's very important to be able to export/import accounts.
Within the Ethereum wallet, go to File > Backup > Accounts. On OSX, this translates to
. There should be one keystore file, starting with UTC, which name matches the public key (the one posted on social media previously). Its content is in JSON format.
Another available wallet for Ethereum is MetaMask, available as a dedicated browser or a Chrome extension.
- Install the Chrome extension - it can be uninstalled just afterward.
- Locate the extension in the browser bar.
- Locate the Account button - it's the second rightmost one.
- Choose Import Account.
- In Select Type, choose JSON File.
- Point to the above file.
- Type your account password.
At this point, MetaMask should also display your account and its balance. Notice it's the same account public key and the same balance.
Published at DZone with permission of Nicolas Frankel , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.