Web3 Provider Engine – Understanding Web3 and Web3 Provider Engine for Ethereum Dapps

ethereum-wallet-dappweb3-providersweb3js

Scenario:

  1. Import json file and decrypt it
  2. Use account to sign the messsage

I can do this with web3(Web3.providers.HttpProvider) or with web3-provider-engine. What is major difference between using web3 or web3-provider engine?
When should i use web3 provider engine?

Best Answer

Web3 is a library that allows talking to an ethereum node easily from javascript.

Web3 ProviderEngine enhances that functionality. In web3 v0.20 is was required if you wanted to implement a thin client over a public node like infura. But with Web3 v1.0 some of the functionality of Web3 ProviderEngine was reimplemented at web3 v1.0.

I'd suggest to try if web3 v1.0 works for you then I'd use that version.

Related Topic