Skill 1.1.3

Describe the status of web3.js and compare it with ethers.js and viem

Key Concepts

web3.js was the original Ethereum JavaScript library, maintained in its later versions by ChainSafe. Version 4, released in 2023, rewrote it in TypeScript, introduced BigInt return values and made the library modular. ChainSafe announced the end of the project and archived the repository on 4 March 2025. Version 4.16 remains on npm and works, but it receives no new features or fixes.

ethers.js (version 6) is the most widely used alternative. It separates providers, which read the chain, from signers, which hold keys and send transactions, and it is the library Hardhat's Mocha toolbox uses. viem is a newer TypeScript-first library with public clients for reading and wallet clients for writing, strong typing derived from ABIs, and small bundle sizes. All three expose the same capabilities because they wrap the same JSON-RPC interface.