My Image
CoursesQuizzesProblemsContestsSmartBooks
Contest!

No results found

LOGINREGISTER
My ProgressCoursesQuizzesProblemsContestsSmartbooks
Published on 13 Dec 2021
How to start with Ethereum DApp development : PART-II
The simple guide to start with the development of decentralised applications on Ethereum Blockchain
img
Ganesh Deshpande
0
Like
201

Now since we have discussed upto deploying smart contract on Ethereum blockchain we shall now see how we can connect with the smart contract from our application.

Now there is a library in javascript called web3.js which will actully help our application to interact with smart contract functions. It depends what framework/language you are using to build your application for example if you are willing to interact with smart contract using python then you will go for web3.py otherwise now a days most of the web applications are built using react, angular, vue javascript frameworks so web3.js is fine. You have to initialise web3 with a web3 provider. Most of the DApps opt for Metamask since it is also an wallet and easy to use for DApp users but here is a catch Metamask is used as web extension and from there user will be able to use the DApp but its only available on client side of code and can only be accessed from the browser and not the server. So if you are about to connect smart contract from nodejs server file its going to throw an error.

Once you have chosen your proper web3 provider its now time to get the instance of smart contract you have deployed. You can get the instance with web3 api and interact with smart contract also and then things are very easy.


For front-end/client side DApp building

(Truffle/hardhat/Remix) + (Metamask) + (Web3.js) + (Any Javascript Framework, React/Angular/Vue/etc)

(Truffle/hardhat/Remix) + (Metamask) + (Web3.py) + (Flask/Django)

For back-end/server side DApp building

(Truffle/hardhat/Remix) + (Infura/Alchemy + TruffleHDWalletProvider) + (Web3) + (NodeJs)

Image

You can follow these topics for further reading :

  1. Interact with smart contract functions from plain vanillaJs


You can take the complete course on building DApp on ethereum 

Ethereum DApp Development : Beginner | DApp World

Learn fundamentals of building decentralised application on Ethereum Blockchain

https://dapp-world.com/course/ethereum-dapp-development-beginner-T2QL


<- Prev Part

Enjoyed the SmartBook?
Like
logo
contact@dapp-world.com
Katraj, Pune, Maharashtra, India - 411048

Follow Us

linkedintwitteryoutubediscordinstagram

Products

  • SmartBooks
  • Courses
  • Quizzes
  • Assessments

Support

  • Contact Us
  • FAQ
  • Privacy Policy
  • T&C

Backed By

ah! ventures

Copyright 2023 - All Rights Reserved.

Recommended from DAppWorld
img
1 May 2021
How to connect Ganache with Metamask and deploy Smart contracts on remix without
Set up your development environment with (Metamask + Ganache + Remix) and skip truffle :)
3 min read
11494
5
img
8 Jul 2021
How to interact with smart contarct from backend node js
call and send functions from backend server side using nodejs
3 min read
8068
2
img
18 Aug 2021
Send transaction with web3 using python
Introduction to web3.py and sending transaction on testnet
3 min read
6215
5
img
5 Aug 2021
Deploy Smart Contract on Polygon POS using Hardhat
how to deploy smart contracts on polygon pos chain using hardhat both mainnet and testnet ?
3 min read
5533
3