If MetaMask uses Infura as their backend, and Infura cannot watch for events, then how does MetaMask manage it?


MetaMask examines the logs for each block and filters them locally. Take a look at https://github.com/kumavis/eth-json-rpc-filters and https://github.com/MetaMask/provider-engine for details, though the code can be a bit hard to follow.

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.