Web3.js is a collection of libraries that allow developers to interact with a remote or local Ethereum node using HTTP, IPC, or WebSocket
Ethersjs is similar to web3js that is used for interaction with blockchain.
npm i web3
Among the various functionalities of Web3.js, the below functions are the broadest modules that allow for interaction with the Ethereum ecosystem:
- web3-eth :- is for the ethereum blockchain and smart contracts.
- web3-shh :- is for the whisper protocol, to communicate p2p and broadcast.
- web3-bzz :- is for the swarm protocol, the decentralized file storage.
- web3-utils :- contains useful helper functions for Dapp developers.
We wil mostly be using :
- web3-eth
- web3-utils