Source link
⚡️Again! We are connecting to Genache using Web3.js in your Node.js application. I’m Adefisayo Adejumo, a software engineer and web3.js ambassador. In this video, we’ll walk through a step-by-step guide on how to set up a Node.js app and integrate it with Genache to retrieve Ethereum accounts and their balances.
🔥This guide covered setting up a Node.js project, installing the necessary packages, and creating an endpoint to retrieve Ethereum balances.
💫 This tutorial is beginner-friendly, and ideal for those who want fast and practical step-by-step instructions on integrating a web app with blockchain.
👩🏽💻 Keep in touch with Ayo:
• Website: https://porfolio-adeoluwafisayomi.vercel.app/
• Linkedin: https://www.linkedin.com/in/adefisayo-adejumo/
• Twitter: https://twitter.com/deoluwafisayomi
• Github source code: https://github.com/Beloved1310
🔗 Genache:
• Medium Links: https://medium.com/shyft-network/how-we-use-ganache-and-ganache-cli-11bb94aa2d1#:~:text=Assuming%20you’ve%20installed%20Ganache,%2C%20%E2%80%9Cganache%2Dcli%E2%80%9D.
https://inthediary.medium.com/installing-ganache-5f6a2b22df97
🔗 Links:
• Discord Community (‘web3js-general’ channel) https://discord.com/invite/3shNX8cqGR
• Web3.js Docs https://docs.web3js.org/
• Web3.js GitHub Repo https://github.com/web3/web3.js
• ChainSafe https://chainsafe.io/
#web3development #web3education #web3community #blockchain #web3js #solidity #javascript #webdevelopment #ethereumblockchain #metamask #ethereumdevelopment
———–
Time codes
[00:00:00] Intro
[00:00:35] Review Web3.js with get Balance
[00:02::41] Why we can’t get accounts with infura RPC
[00:02:09] Introduction to ganache
[00:05:00] Connection to ganache CLI
[00:10:19] Get accounts from ganache
[00:12:00] Get balances from the accounts
[00:13:26] Conclusion
date : 2024-08-27 06:28:04
views : 627
likes : 6
rating :
Interacting with Ganache accounts and web3.js
In this video, AD, a web3.js Ambassador and software engineer, explains how to use the getAccount
method in web3.js to retrieve accounts from Ganache, a free and open-source Ethereum node emulator. Ganache is a popular tool for testing and development, allowing users to run a local Ethereum node without having to set up a public RPC provider.
AD begins by introducing Ganache and its features, such as fast and customizable blockchain emulation, zero transaction costs, and customizable RPC settings. He then demonstrates how to use Ganache CLI to connect to a local RPC server and create test accounts with a private key and gas limit.
The main focus of the video is on using the getAccount
method in web3.js to retrieve accounts from Ganache. AD shows how to use the method without parameters to retrieve an array of accounts, and then demonstrates how to use the method with a Ganache CLI connection to retrieve a specific account.
The video also covers how to use the getBalance
method to retrieve the balance of each account, and how to return a promise that maps to the account. AD concludes by highlighting the importance of understanding how to interact with Ganache accounts and web3.js for testing and development purposes.
For readers interested in Web3, it’s worth noting that web3.js is a popular JavaScript library for interacting with the Ethereum blockchain, and Ganache is a valuable tool for testing and development. This video provides a helpful introduction to using these tools together.
Error: unable to get links from server. Please make sure that your site supports either file_get_contents() or the cURL library.