Book Image

Ethereum Projects for Beginners

Book Image

Ethereum Projects for Beginners

Overview of this book

Ethereum enables the development of efficient, smart contracts that contain code. These smart contracts can interact with other smart contracts to make decisions, store data, and send Ether to others.Ethereum Projects for Beginners provides you with a clear introduction to creating cryptocurrencies, smart contracts, and decentralized applications. As you make your way through the book, you’ll get to grips with detailed step-by-step processes to build advanced Ethereum projects. Each project will teach you enough about Ethereum to be productive right away. You will learn how tokenization works, think in a decentralized way, and build blockchain-based distributed computing systems. Towards the end of the book, you will develop interesting Ethereum projects such as creating wallets and secure data sharing.By the end of this book, you will be able to tackle blockchain challenges by implementing end-to-end projects using the full power of the Ethereum blockchain.
Table of Contents (12 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributor
Preface
Index

Deploying and testing a projects


We will now be deploying the application that we created in the previous section. We will do so by starting a development blockchain, configuring our deployment, deploying our smart contracts, and building the application.

Starting a development blockchain 

Firstly, we are going to want to run our development blockchain. This can be done by typing ganache-cli in the terminal window. Your screen will look as follows:

Make sure you jot down or remember the localhost port number. It is of importance, as you will be connecting to it in the later stages of this project. Ganache-cli generates 10 available accounts and then the corresponding private keys. These private keys are used to encrypt the transactions that are being sent from each individual account. At the bottom, you will see a Mnemonic. These twelve words are very important. Always remember to save these words because you will require them to import your private keys and the same accounts into MetaMask...