I have some code that immediately sets up an allEvents watch for the contract, then leaves that running and uses it to handle various events generated by the contract. I've been running it on Rinkeby and it seems to always correctly pick up relevant events, including the results of transactions. However, on Mainnet, the events don't seem to be firing consistently.

var evts = rc.allEvents({}, {fromBlock:'latest', toBlock:'latest'})
evts.watch(function (error, result) {
   // handling code


What could be going wrong, and what could I do to fix it?

  • Does it also fail with a single event? I remember having issues with chain reorgs in the past. – Ismael Jul 11 '18 at 16:39

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.