Just started looking at Web3 and I'm currently trying to listen for an event emitted by a smart contract on the Polygon network by using
event_filter = contract.events.<MyEvent>.createFilter(fromBlock='latest')
I've tried three different providers, Infura (https), maticvigil and Alchemy (both https and wss), but when calling the method createFilter I get the response
{'code': -32601, 'message': 'Unsupported method: eth_newFilter.'}
When using the method in the Ethereum mainnet everything goes smoothly, but as soon as I change to a Polygon provider I get a similar error for all providers.
If I understand what's happening, that means that in order for me to listen to an event using that Web3 method the provider has to implement eth_newFilter
So my question is, does anyone happen to know of a provider for the Polygon network that implements the eth_newFilter method on their API?
Alternatively I would appreciate some guidance/sources on how to listen for a particular event triggered by a smart contract on the Polygon network without having to rely on a provider, thanks.