Skip to content

Instantly share code, notes, and snippets.

View Krishprajapati15's full-sized avatar
:octocat:
Building dreams in code...

Krish Prajapati Krishprajapati15

:octocat:
Building dreams in code...
View GitHub Profile
@Krishprajapati15
Krishprajapati15 / README.md
Created May 5, 2025 15:53
This Gist demonstrates how to interact with the Ethereum blockchain using the Web3.js library. It includes simple, beginner-friendly examples such as connecting to the Ethereum mainnet using Infura, retrieving the latest block number, and checking the ETH balance of any Ethereum address. This code is ideal for developers who are starting with We…

🔗 Web3.js Ethereum Interaction Gist

This Gist demonstrates basic interactions with the Ethereum blockchain using the Web3.js library. You can:

  • Connect to the Ethereum mainnet via Infura.
  • Fetch the latest block number.
  • Check the ETH balance of any Ethereum address.

🛠 Requirements

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com