[Python] Web3 Python async request for get_all_entries are failing

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    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 :

    web3\manager.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

    Continue reading...

Compartilhe esta Página