async_w3 = AsyncWeb3(AsyncWeb3.AsyncHTTPProvider(rpc))
async_contract = async_w3.eth.contract(address=ADDRESS, abi=ENV.TOKEN_ABI)
async_contract.events.Transfer().create_filter(fromBlock=crawl_block-block_gap,toBlock=crawl_block )
total_supply = await async_contract.functions.totalSupply().call()
data__ = await event_filter.get_all_entries()
Errors :
web3manager.py", line 293, in formatted_response
raise ValueError(error)
ValueError: {'code': -32000, 'message': 'filter not found'}
I was aspecting a list [] as the result of get_all_entries
New contributor
Ar Arefin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.