Davi Pedro Bauer

Getting Started with Ethereum

A Step-by-Step Guide to Becoming a Blockchain Developer

Davi Pedro Bauer
Campo Bom, Rio Grande do Sul, Brazil
ISBN 978-1-4842-8044-7e-ISBN 978-1-4842-8045-4
© Davi Pedro Bauer 2022
Standard Apress
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, express or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress Media, LLC, part of Springer Nature.

The registered company address is: 1 New York Plaza, New York, NY 10004, U.S.A.

Introduction

This book is a step-by-step guide for everyone who wants to get started as an Ethereum developer. It was designed for those who have never programmed anything in the blockchain and want to get started.

I will cover everything from the basic requirements of installation to writing, testing, and deploying smart contracts. I will also cover topics such as IPFS, Filecoin, ENS, Chainlink, Truffle, Ganache, OpenZeppelin, Pinata, Fleek, Infura, MetaMask, and OpenSea, among others.

In Chapter 1, I will go through all the necessary requirements to start the activities described in this book. It covers software and tools such as Docker, Truffle, Ganache, MetaMask, and Infura.

In Chapter 2, you will learn how to create a basic Solidity project using the VS Code extension and then compile and deploy the smart contract to a local blockchain.

In Chapter 3, you will learn how to code smart contracts to create your own coin and deploy it to a local blockchain. Fungible tokens are interchangeable, so they are perfect to solve problems such as double spending. You will also be able to add this token to your own wallet and send it to different wallets, as well as send other coins that you already have.

In Chapter 4, you will learn how to create a unit test file for a smart contract, as well as write test assertions, run the unit tests, and check the unit test results.

In Chapter 5, you will be able to create smart contracts for badge tokens. You can use badge tokens, also known as NFTs, to represent physical things in the virtual world, such as digital collectibles, game items, digital art, etc. Each NFT token is unique and can have a unique value. In this chapter, you will learn how to code the smart contract with the help of the OpenZeppelin library. You will also create the badge and add it to IPFS node. After that, you will learn to pin it so it is available for everyone, everywhere. Next, you will learn how to migrate the contract to different environments such as a local blockchain using Ganache and testnets using Infura. Finally, you will learn how to sell your own NFT on OpenSea.

In Chapter 6, we will cover different ways to fund your wallet using faucets. This part is important because you will need some ether in your wallet in order to pay for the transaction. Most of the examples will be deployed on testnets so you won’t need real money to execute them.

In Chapter 7, you will learn how to create and save files on a decentralized file system. I also cover some tools such as a browser extension that will help you manage the node, as well as Pinata to help you pin your files remotely instead of keeping them locally. In addition, you will be able to host your own site on IPFS using Fleek.

In Chapter 8, I will cover ways to preserve files on a local node. The idea behind Filecoin is the same of IPFS, with the difference that Filecoin has an incentive mechanism and incentive nodes to preserve files. Filecoin was built on top of IPFS.

In Chapter 9, you will learn how to register a custom domain on the Ethereum Name System. You can use it to host a site under this domain name or even as a domain for your wallet to receive cryptos, tokens, or NFTs.

In Chapter 10, I will cover use cases where you need to pull data from off-chain using oracles. You will learn how to use price feeds and then crypto prices inside smart contracts.

In Chapter 11, you will learn how to create a simple project to connect to Web3 using the .NET platform and how to retrieve data from the blockchain to display wallet balances.

Chapter 12 concludes the book.

Table of Contents
About the Author
Davi Pedro Bauer

A photo of Davi Pedro Bauer.

has more than 20 years of experience in the IT sector with experience in analysis and systems development. He has been working with agile methods since 2009, where he participated in agile adoption programs in multidisciplinary teams, supporting the implementation of processes and practices such as Scrum and Kanban, as well as the launch of new digital products for web and mobile platforms. Since 2016, he has been studying topics related to blockchain, such as cryptocurrencies, asset tokenization, smart contracts, and decentralized applications (DApps), and since 2019, he has been working with DevSecOps from code to infrastructure.
 
About the Technical Reviewer
Prasanth Sahoo

A photo of Prasanth Sahoo.

is a thought leader, an adjunct professor, a technical speaker, and a full-time practitioner in blockchain, DevOps, cloud, and agile working for PDI Software. He was awarded the “Blockchain and Cloud Expert of the Year Award 2019” from TCS Global Community for his knowledge sharing within academic services to the community. He is passionate about driving digital technology initiatives through coaching, mentoring, and grooming. Prasanth has a patent under his name, and to date, he has interacted with more than 50,000 professionals, mostly within the technical domain. He is a working group member in the Blockchain Council, CryptoCurrency Certification Consortium, Scrum Alliance, Scrum Organization, and International Institute of Business Analysis.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.106.232