I always get in trouble with things like var filter = web3.eth.filter({fromBlock: '5139365', toBlock: 'latest'}); filter.watch(function(_err, _resp){ ... when using MetaMask as provider.

What is the recommended way to watch for new blocks when using the MetaMask provider?

  • What is the probles do you have with that approach? – Ismael Feb 24 '18 at 19:20
  • It simply does not work. No error and no or just one callback – kn1g Feb 25 '18 at 2:34
  • I've used the FilterProvider from MetaMask Provider Engine github.com/MetaMask/provider-engine with infura.io that doesn't support filters. – Ismael Feb 26 '18 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.