Web3 Libraries

The Web3 library provides quick access to JSON-RPC methods that allow you to interact with the blockchain through a Web3 connection endpoint such as: SolarPath (or build your own node).

The Web3 library can quickly build a front-end that communicates with the blockchain (including smart contracts deployed on the blockchain).

Web3 libraries are available for various blockchains such as: matic.js for the Polygon network. This topic focuses on the Ethereum network, but the fundamentals are the same for other blockchains.

Some popular Ethereum-compatible Web3 libraries (including but not limited to) are listed below:

LanguageWeb3 Lib








For how to interact with Ethereum, you can refer to: How to use Ethereum.

web3.js VS ethers.js

Web3.js and Ethers.js are two popular JavaScript Web3 libraries that enable frontend apps to interact with the Ethereum blockchain. They have similar functionality, with Web3.js currently being the most popular.

Last updated