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

Creating an ERC20 token


In this section, you will learn how to create an ERC20 token. We will start by setting up a new project—we are going to use the OpenZeppelin Solidity framework to create our project.

Installing OpenZepplin Solidity

OpenZeppelin is basically just a collection of smart contracts that you can import into your own smart contracts in order to speed up your development. They can also make your smart contracts much more secure from the get-go.

You can visit the OpenZeppelin GitHub page at OpenZeppelin Github:

If you have been browsing through the Truffle website—truffleframework.com—then you have probably come across Ganache. We will be using it throughout this section. Ganache is a GUI that is basically easier to navigate with than TestRPC, but while doing all the same things as TestRPC. You can download it for Windows or any other OS if you go to Ganache's GitHub page at Ganache GitHub.

Note

The ethereumjs-testrpc has been deprecated and it has been renamed to ganache-cli. For...