A Brief Introduction to Web3: Decentralized Web Fundamentals for App Development
- Length: 199 pages
- Edition: 1
- Language: English
- Publisher: Apress
- Publication Date: 2023-01-18
- ISBN-10: 1484289749
- ISBN-13: 9781484289747
- Sales Rank: #0 (See Top 100 Books)
Journey into the world of Web3-based application development, its related protocols, and its usage in developing decentralized applications. This book will explain how programmable blockchains are revolutionizing the world of web applications, which can be run on decentralized platforms or peer-to-peer networks like IPFS.
You’ll start with an introduction to decentralization with a focus on blockchain implementations like Ethereum and Bitcoin. You’ll then learn to develop simple decentralized applications (dApps) using Solidity, the language used for developing apps with Ethereum as well as smart contracts, wallets, gateways and NFTs. This book also covers how security and scale are addressed by L2 networks for scaling Bitcoin and Ethereum blockchains.
A Brief Introduction to Web3 is your go-to guide for setting up simple Web3 applications using the Ethereum blockchain programming model.
What You Will Learn
- Build NFT tokens
- Examine Web3 differs from Web2-based applications
- Understand the fundamentals of blockchain and the corresponding data structures around it
- See how consensus and trustless computing can be performed using blockchain
- Use Solidity and Truffle to build Web3 applications
Who This Book Is For
Software developers and architects who are looking to hone their skills in dApps and web3 applications developed on sound principles of decentralized computing.
Table of Contents About the Author About the Technical Reviewer Introduction Chapter 1: Decentralization and Web3 1.1 Web 1.0 1.2 Web 2.0 1.3 Web 3.0 1.3.1 Introduction to Decentralization 1.3.2 Different Topologies for Networks 1.3.2.1 Centralized and Non-distributed 1.3.2.2 Centralized but Distributed 1.3.3 Decentralized Systems 1.3.4 Web3 Case Study 1.4 Summary Chapter 2: Blockchain 2.1 Types of Blockchains 2.1.1 Public Blockchain 2.1.2 Private Blockchain 2.1.3 Permissioned Blockchain 2.2 What Is a Blockchain? 2.3 Blockchain Building Blocks 2.3.1 Block 2.3.2 Chain 2.3.3 Network 2.4 Where Is Blockchain Used? 2.5 Evolution 2.6 Consensus 2.6.1 Proof of Work 2.6.2 Proof of Stake 2.7 Blockchain Architecture 2.8 Cryptographic Keys 2.9 Blockchain Compared to a Singly Linked List 2.10 Ethereum 2.11 Summary Chapter 3: Solidity 3.1 What Is Solidity? 3.2 Ethereum 3.2.1 Ethereum Virtual Machine 3.3 Smart Contracts 3.4 Making Sense of Solidity Syntax 3.4.1 Pragma 3.4.2 Variables 3.4.2.1 Variable Naming 3.4.2.2 Scope of Variables 3.4.3 Value Types 3.4.4 Address 3.4.5 Operators in Solidity 3.4.5.1 Arithmetic Operator 3.4.5.2 Comparison Operator 3.4.5.3 Logical Operators 3.4.5.4 Assignment Operators 3.4.6 Loops 3.4.7 Decision Flows 3.4.8 Functions in Solidity 3.4.8.1 Function Modifiers 3.4.8.2 View Functions 3.4.8.3 Pure Functions 3.4.8.4 Fallback Function 3.4.8.5 Function Overloading in Solidity 3.4.9 Abstract Contracts 3.4.10 Interface 3.4.11 Libraries 3.4.12 Events 3.4.13 Error Handling in Solidity 3.4.14 Solidity and Addresses 3.4.14.1 Ethereum Address 3.4.14.2 Usage of Addresses in Solidity 3.4.14.3 Balance Method 3.4.14.4 Transfer Function 3.4.14.5 Contract-related Functions 3.4.14.6 Gas in Ethereum 3.4.14.7 Ethereum Transaction Costs 3.5 Summary Chapter 4: Wallets and Gateways 4.1 Types of Wallets 4.2 So, What Is a Testnet ? 4.3 MetaMask 4.3.1 Installation 4.4 Web3.js 4.4.1 web3-eth 4.4.2 web3-shh 4.4.3 web3-bzz 4.4.4 web3-net 4.4.5 web3-utils 4.5 Infura Setup 4.5.1 Interfacing with Ropsten Network via Infura Gateway 4.6 Summary Chapter 5: Introduction to Remix IDE 5.1 Remix IDE 5.2 Creating Own Token 5.3 Summary Chapter 6: Truffle 6.1 Truffle Installation 6.1.1 Installing Node 6.1.2 Install Truffle 6.2 Smart Contract Deployment via Truffle 6.2.1 Contract Code 6.2.2 Compile and Deploy the Contract 6.3 Summary Chapter 7: IPFS and NFTs 7.1 IPFS 7.1.1 IPFS: 30,000-Foot View 7.1.2 Installation 7.2 ERC-721 7.3 Creating an ERC-721 Token and Deploying It to IPFS 7.4 Summary Chapter 8: Hardhat 8.1 Installation of Hardhat Framework 8.2 Workflow for Hardhat 8.3 Deployment of the Smart Contract 8.4 Summary Index
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/Apress
2. In the Find a repository… box, search the book title: A Brief Introduction to Web3: Decentralized Web Fundamentals for App Development
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.