analyseether / ether_sql

A python library to push ethereum blockchain data into an sql database.
http://ether-sql.readthedocs.io
Apache License 2.0
69 stars 22 forks source link

Want to use infura websocket filter to search for new blocks #54

Open ankitchiplunkar opened 6 years ago

ankitchiplunkar commented 6 years ago

Is your feature request related to a problem? Please describe. Since the new_block_filter is not enabled in general Infura API we need to rely on websocket API to use this filter. Unfortunately this is not working with the web3.py websocket or Infura has an issue on their end.

  1. https://github.com/ethereum/web3.py/issues/1009
  2. https://github.com/INFURA/infura/issues/134#issuecomment-417135301

Describe the solution you'd like Once the issue gets resolved:

  1. We should provide the method to follow the ethereum chain using infura node as well
  2. Use a websocket with the Parity node as well to get the blocks

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. The current master implementation does not provide this option for the Ingura node.

voith commented 6 years ago

@ankitchiplunkar I reached this issue through ethereum/web3.py#1009.

Unfortunately this is not working with the web3.py websocket or Infura has an issue on their end.

Can you test it again? I just tested this a few hours back. Infura has fixed this on their end. WebsocketProvider in web3.py should work without any changes.

If you're still facing issues, then please report them on the web3.py issue.

ankitchiplunkar commented 6 years ago

@voith checked this on my end as well works fine. Thanks for reaching out :)