Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Ethereum

You're reading from   Learn Ethereum Build your own decentralized applications with Ethereum and smart contracts

Arrow left icon
Product type Paperback
Published in Sep 2019
Publisher Packt
ISBN-13 9781789954111
Length 540 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Xun (Brian) Wu Xun (Brian) Wu
Author Profile Icon Xun (Brian) Wu
Xun (Brian) Wu
Dongying Song Dongying Song
Author Profile Icon Dongying Song
Dongying Song
Zhihong Zou Zhihong Zou
Author Profile Icon Zhihong Zou
Zhihong Zou
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Blockchain and Ethereum Basics
2. Blockchain and Cryptocurrency FREE CHAPTER 3. Ethereum Architecture and Ecosystem 4. Deep Research on Ethereum 5. Section 2: Blockchain Development Cycle
6. Solidity Fundamentals 7. Developing Your Own Cryptocurrency 8. Section 3: Ethereum Implementations
9. Smart Contract Development and Test Fundamentals 10. Writing UI for the DApps 11. Ethereum Tools and Frameworks 12. Section 4: Production and Deployment
13. Creating an Ethereum Private Chain 14. Deployment of Your Smart Contract 15. Building Ethereum Wallets 16. Section 5: Conclusion
17. Conclusion 18. Other Books You May Enjoy

Knowing about DApps

A DApp is an application that uses smart contracts to run. Smart contracts are deployed on an Ethereum Virtual Machine (EVM). It is similar to a client-server two-tier architecture, where there is no need for any middlemen to operate. A DApp can have a frontend (web) that makes calls to its backend (smart contract) through the web3.js API.

To interact with a blockchain smart contract, web3.js typically connects with a wallet—one of the most popular browser wallets is MetaMask. The wallet will connect with a backend blockchain node instance and send a request to the blockchain.

The following diagram shows a typical DApp architecture and the flow interactions between the frontend and backend:

In this chapter, we are going to follow the preceding diagram to build our decentralized digital art market DApp. A frontend tier on the client side will use React...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime