Paging Maggie!

As a person whose heart stops when I see a stick or old piece of rope on the road, and it is vaguely shaped like a snake, I get it! Your recent blog post surrounding Creative Confidence struck me…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




My first steps with Ethereum

I’ve created a separate Virtual Machine with Ubuntu 16.04 for this experiment. This experiment will make use of a local private Ethereum test network for easy development. Ethereum can be installed on your machine with the following commands:

A Genesis block is the first block in the chain, block 0, and the only block that does not point to a predecessor block. When first looking into Genesis block definitions, I was a bit confused. There are many variations (1, 2, 3) out there on the Internet. A custom Genesis block allows you to change specific configuration settings for your private Ethereum blockchain like gas limit and mining difficulty.

I tried to initialize the Genesis block with this configuration, however, geth rejected the config file. Why? We are allocating funds to non-existing addresses (wallets). If you want to allocate funds to certain addresses to avoid the need for mining, you have to create those with geth. A new account can be easily created with geth account new. The command will return a new address which you can add to your custom Genesis file under the "alloc" field.

The example by Go-Ethereum is the most basic version of a custom Genesis file (required fields: config, difficulty, gasLimit and alloc). I’ll try to give a proper explanation for the relevant options and the values used (1):

Blockchain deamon
Deamon to keep private blockchain running in background with the use of the geth command. Contents of Bash script (2):

To use this script, give it executable rights ( chmod +x script.sh ) and exute it ( ./script.sh ). Note the --rpcapi option, here we can define which APIs we want to have at our disposal over the HTTP-RPC interface (default: “eth, net, web3”). It is a good idea to include personal, parity, miner as well.

Let’s start with the connection to the rpcpath, and immediately unlock your main account.

Next, I want to display all the accounts and balances (logged in console). As you can see, the commands are exactly the same as in the geth console.

Add a comment

Related posts:

What Keeps You From Writing?

What is stopping that next killer blog post, mind-blowing novel, informative white paper or life-changing e-books from pouring out of your mind and onto paper? When we decide to be writers, all sorts…

Top 4 Things You Need To Know when Hiring an eBook Ghost Writer

One of the most intriguing and troubling questions you can ask yourself is what you’re paying a ghostwriter for. There would be many services like these such as GhostWriting LLC and Book Writing Inc…

Antisemitic hate crime almost doubles over 12 months despite lockdown restrictions.

The Community Security Trust, a charity that aims to protect British Jews from antisemitism, produced the Antisemitic Incidents Report 2020 in February this year. This report highlights statistics…