2. Access a Simple DApp
KC Tam
Reach KC on LinkedIn: https://www.linkedin.com/in/ktam1/
Objective
We will walk through a very simple DApp and see how a user
accesses this DApp with Metamask (a browser plugin).
Note
For simplicity we skip
● contract deployment process
● how to develop and deploy the DApp
● how to install Metamask
(For information, this DApp is deployed on ganache-cli Ethereum network, f.k.a.
testerpc, using Truffle development framework for contract deployment with
webpack integration)
A Simple DApp: Simple Storage
A value is stored in the Ethereum Network (gigantic computer).
User can interact with this value through two actions
● Get the value from the store
● Set a new value and keep it in the store
Frontend is built to perform these two actions, and proper integration is done.
Simple Storage
(DApp)
Application (Contract)
Code
Data
Web / Mobile Frontend
Metamask Plug-in
Metamask plug-in
Interacting DApp with Ethereum
Accounts
Access the Frontend
End user accesses this application
just as a normal web application.
Refresh
Application (Contract)
Code
value
Web / Mobile Frontend
Refresh
get()
Note: no Ethers required for this task.
Update a Number
Value update requires Ethers.
Metamask pops up and asks user
to authorize and to confirm this
task.
Metamask Requesting Confirmation
Metamask
Metamask allows you to select a User Account.
Here 0x0B2FD6…254B is selected to initiate this task
(transaction).
Contract Address is 0xdE4b39…150B
User specifies maximum transaction fee (in terms of
gas limit and gas price) for this transaction
Submit when everything is correct
Update Transaction Complete
Application (Contract)
Code
value
Web / Mobile Frontend
Update
set(100)
Summary
User can access DApp as common web application. When
needed, user is asked to authorize (confirm) the transaction
using Metamask browser plugin.

More Related Content

PDF
A Microservices Journey - Susanne Kaiser
PPTX
Meet with Meteor
PDF
From localhost to the cloud: A Journey of Deployments
PDF
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
PPT
Intro to signalR
PPTX
PPTX
Web services & com+ components
PDF
DMKit_2.0_README_1
A Microservices Journey - Susanne Kaiser
Meet with Meteor
From localhost to the cloud: A Journey of Deployments
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
Intro to signalR
Web services & com+ components
DMKit_2.0_README_1

Similar to Access a Simple DApp (20)

PDF
How to Structure Your K8s GitOps Repository at Scale by Erik Berdonces - DevO...
PPTX
Deploying Cloud Native Red Team Infrastructure with Kubernetes, Istio and Envoy
PPT
Open Source XMPP for Cloud Services
PPT
2008.12.23 CompoWeb
PPTX
Decentralized App Blockchain
PPTX
Cloud Foundry a Developer's Perspective
PDF
Building Ethereum Dapp using Solidity | Ethereum Dapp Tutorial | Ethereum Dev...
PPT
Web engineering
PDF
DotNetNuke Client API -DragDropAdminModules.pdf
PPT
Migrating from Pivotal tc Server on-prem to IBM Liberty in the cloud
PPTX
Introduction to meteor
PPTX
Chaincode Use Cases
PDF
JNUC 2017: Open Distribution Server
PDF
Dot Net Fundamentals
PPT
Multi-tenancy with Rails
PDF
Introduction to Magento Optimization
ZIP
OneTeam Media Server
PDF
NetWeaver Developer Studio for New-Beas
PDF
Web3 Application Development
PPTX
Openshift Presentation ppt compare with VM
How to Structure Your K8s GitOps Repository at Scale by Erik Berdonces - DevO...
Deploying Cloud Native Red Team Infrastructure with Kubernetes, Istio and Envoy
Open Source XMPP for Cloud Services
2008.12.23 CompoWeb
Decentralized App Blockchain
Cloud Foundry a Developer's Perspective
Building Ethereum Dapp using Solidity | Ethereum Dapp Tutorial | Ethereum Dev...
Web engineering
DotNetNuke Client API -DragDropAdminModules.pdf
Migrating from Pivotal tc Server on-prem to IBM Liberty in the cloud
Introduction to meteor
Chaincode Use Cases
JNUC 2017: Open Distribution Server
Dot Net Fundamentals
Multi-tenancy with Rails
Introduction to Magento Optimization
OneTeam Media Server
NetWeaver Developer Studio for New-Beas
Web3 Application Development
Openshift Presentation ppt compare with VM
Ad

More from KC Tam (10)

PDF
Access Tokens from Metamask
PDF
Implement ERC20 on TestRPC
PDF
ERC20 Token Contract
PDF
Ethereum: Native Currency and Token
PDF
Use Geth to Deploy Contract
PDF
Use Geth to Access a Deployed Contract
PDF
Use TestRPC in Remix
PDF
Contract Practice with Remix
PDF
Solidity Contract: the code, compilation, deployment and accessing
PDF
Essential Ethereum
Access Tokens from Metamask
Implement ERC20 on TestRPC
ERC20 Token Contract
Ethereum: Native Currency and Token
Use Geth to Deploy Contract
Use Geth to Access a Deployed Contract
Use TestRPC in Remix
Contract Practice with Remix
Solidity Contract: the code, compilation, deployment and accessing
Essential Ethereum
Ad

Recently uploaded (20)

PPTX
Internet of Everything -Basic concepts details
PDF
Five Habits of High-Impact Board Members
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPT
What is a Computer? Input Devices /output devices
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PPTX
TEXTILE technology diploma scope and career opportunities
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
Comparative analysis of machine learning models for fake news detection in so...
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
Modernising the Digital Integration Hub
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
The influence of sentiment analysis in enhancing early warning system model f...
Internet of Everything -Basic concepts details
Five Habits of High-Impact Board Members
Consumable AI The What, Why & How for Small Teams.pdf
What is a Computer? Input Devices /output devices
Final SEM Unit 1 for mit wpu at pune .pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Credit Without Borders: AI and Financial Inclusion in Bangladesh
NewMind AI Weekly Chronicles – August ’25 Week III
A proposed approach for plagiarism detection in Myanmar Unicode text
TEXTILE technology diploma scope and career opportunities
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Module 1.ppt Iot fundamentals and Architecture
Taming the Chaos: How to Turn Unstructured Data into Decisions
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Comparative analysis of machine learning models for fake news detection in so...
Training Program for knowledge in solar cell and solar industry
Enhancing plagiarism detection using data pre-processing and machine learning...
Modernising the Digital Integration Hub
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
The influence of sentiment analysis in enhancing early warning system model f...

Access a Simple DApp