If I create a nested filter.watch


If I call


does filter_b.watch() go out of scope for web3.js? Does geth keeps sending filter_b.watch() results?


filter b will still be polled and receive logs. And as you should provide a callback for filter b, this callback will still be called.

There is no "scope" here, as in JavaScript scopes for filters.

filter_b.watch() will simply take the callback given and call it as often as there are logs matching the callback come.

Your Answer

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

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