fbpx

Alternatives to web3.js

Julien Klepatch

Web3.js is the leading client library for Ethereum. Personally, I am fine with it, but I know that some developers don’t like it because of the beta that never ends, and some random regressions happening between in recent releases. In anycase, it’s always good to know some alternatives so that we can compared. In this article, I will introduce the pros and cons of 3 alternatives:

(Keep in mind that these are all Javascript alternatives. But they are many other web3 alternatives in other languages like Java).

Ether.js is the strongest competitor to web3.js. It is a bit more lightweight than web3, is implemented in typescript, and has some interesting features for creating custom wallets. It is also a bit more stable than web3 (less random bugs).

Truffle-contract is not very well-known because it’s hidden inside the monorepo of the truffle framework. It is used internally by Truffle to fullfill the same role as web3. That’s why when you interact with a smart contract in the Truffle console, the API is not the one of web3. The advantage is that if you want to work with Truffle it provides a better integration with the framework, in particular to import the contract artifact with the deployed() method.

Ethjs is even less known than Truffle-contract. It is a lightweight alternative to web3, even though it’s actually based on web3. Out of all these web3 alternatives, I would say that it’s the easiest to learn.

Which of these are you going to try?

0 Comments

Leave a Reply

More great articles

Which version of web3 should you use?

TLDR: web3-beta 1.0.0-beta.55 npm install web3@1.0.0-beta.35 If you have worked with web3 before, you might have noticed a few.... glitches…

Read Story

Hardhat in 2 mins


In this article I will introduce Hardhat, a framework for smart contracts.

 With Hardhat you can compile, deploy, test, and…

Read Story

10 Factor Dapps: Best Design Practices for Ethereum Dapps

https://youtu.be/jUmHCIAaYVs Have you ever heard of the 12-factor app? That's a document created more than 20 years ago that describes…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.
[contact-form-7 id="6" title="Footer CTA Subscribe Form"]
Arrow-up