官术网_书友最值得收藏!

Smart contract on a private blockchain

Let us do some grown-up stuff now. Yes, we are still not going to spend any fiat money to buy ethers to code on a blockchain. Rather we will do the following:

  1. Write a genesis block file for a private blockchain.
  2. Create the private blockchain using geth commands.
  3. Link the private blockchain with the MIST browser.
  4. Mine the chain to generate our own ethers as rewards.
  5. Use those ethers to deploy a smart contract on our very own private blockchain.

The pre-requisite tools to be installed are as follows:

I am not going into the details of the installation. The installations are pretty straightforward, involving the terms and conditions page (which we never read), followed by blind-surfing of Next and I Agree buttons, and while the installations are going on, watching some random YouTube videos or stand-up comedians to entertain ourselves.

For troubleshooting, Google and the stack exchange are your best friends, ever. Figure 3.21, Figure 3.22, Figure 3.23, Figure 3.24, Figure 3.25, and Figure 3.26 are provided for your reference, to check whether you are on the right track during installation, especially for MIST, geth, Cygwin, and Node.js. The only recommendation is to try to keep all these installation, in one separate folder in a separate drive, apart from .NET framework, so that they do not mess up your main program files. My downloads and installations were inside F:Ethereum_Environment path:

Figure 3.21: Mist installer package
Figure 3.22: Default start of MIST on RINKEBY public blockchain (avoid this step)
Figure 3.23: Geth download page
Figure 3.24: Geth Successful Installation page
Figure 3.25: Cygwin Setup
Figure 3.26: Node.js Setup Wizard
主站蜘蛛池模板: 彰化市| 遵义县| 永登县| 玛纳斯县| 治县。| 永仁县| 平舆县| 子洲县| 兴和县| 辽阳县| 富川| 托克托县| 宁武县| 河间市| 峡江县| 岳普湖县| 萍乡市| 万山特区| 积石山| 呈贡县| 义马市| 休宁县| 五大连池市| 齐齐哈尔市| 滨州市| 新乐市| 镇巴县| 饶阳县| 东源县| 平江县| 孝义市| 石狮市| 北碚区| 盖州市| 齐齐哈尔市| 阳谷县| 邵武市| 吴川市| 巴中市| 简阳市| 上蔡县|