- Ethereum Smart Contract Development
- Mayukh Mukhopadhyay
- 306字
- 2021-06-24 19:23:55
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:
- Write a genesis block file for a private blockchain.
- Create the private blockchain using geth commands.
- Link the private blockchain with the MIST browser.
- Mine the chain to generate our own ethers as rewards.
- Use those ethers to deploy a smart contract on our very own private blockchain.
The pre-requisite tools to be installed are as follows:
- Windows 7 (64-bit) (Instructions are for Windows user, for Ubuntu/Mac refer appendix)
- Cygwin setup-x86_64 (For Bash-Shell on Windows 7) (https://cygwin.com/install.html)
- geth-windows-amd64-1.6.7-ab5646c5 (https://geth.ethereum.org/downloads/)
- Mist-win64-0-9-0 (https://github.com/ethereum/mist/releases)
- Node.js (node-v6.11.2-x64) (https://nodejs.org/en/download/)
- .NET framework 4.5 (https://www.microsoft.com/en-in/download/details.aspx?id=30653)
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:






- 線性代數(shù)選講
- 線性代數(shù)
- 我的第一本趣味數(shù)學(xué)書2
- 張梅玲:讓孩子受益一生的數(shù)學(xué)思維訓(xùn)練
- 一個(gè)數(shù)學(xué)家的辯白(雙語版)
- 物性數(shù)學(xué)及其應(yīng)用
- 數(shù)字乾坤
- 跟愛因斯坦一起玩數(shù)學(xué)(進(jìn)階篇)
- 2頁紙圖解數(shù)學(xué):以極聰明的方式,讓你三步讀懂?dāng)?shù)學(xué)
- 圖解數(shù)學(xué)思維訓(xùn)練課:建立孩子的數(shù)學(xué)模型思維(多步計(jì)算應(yīng)用訓(xùn)練課)
- 第四屆(2018)北京高校數(shù)學(xué)微課程教學(xué)設(shè)計(jì)競(jìng)賽優(yōu)秀作品與教改論文集錦
- 認(rèn)識(shí)無窮的八堂課:數(shù)學(xué)世界的冒險(xiǎn)之旅
- 萊布尼茲微積分
- 數(shù)據(jù)科學(xué)與機(jī)器學(xué)習(xí):數(shù)學(xué)與統(tǒng)計(jì)方法
- 全局優(yōu)化理論幾種算法的改進(jìn)研究