I've seen people using both in their codes - https://github.com/ethereum/web3.js and https://github.com/ethjs.

Do I need both? Does ethjs depend on web3?

1 Answer 1

  • Web3js is an official project of the Ethereum Foundation.
  • Ethjs is a lightweight reimplementation of web3.js that has an async only API. There is no dependency relationship between them.
  • Another library that is widely used is ethers.js
  • 1
    Typo in the second point? "...lightweight reimplementation of web3.js..."? May 30, 2019 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.