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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access