0

I am new to web3py and I am trying to filter the events of a certain ERC20 contract. I can successfully call the contract's functions, but I struggle with the events.

contract = w3.eth.contract(address=final_address, abi=abi)

event_filter = contract.events.Mint.createFilter(fromBlock='latest')
print(event_filter.get_new_entries())

Token contract has event "Mint", but I only this error every time I am trying to filter:


raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

Am I doing something wrong? can I set a longer timeout period so it doesn't time out? Or does Infura not support event filtering? Any advice would be helpful!

  • Are you using Infura? – Molina Feb 25 at 14:04

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.