Skip to content

Commit

Permalink
Update filters.rst (#2322)
Browse files Browse the repository at this point in the history
* Update filters.rst

Since 2020 Infura added [support to eth_getFilterChanges over HTTPS](https://blog.infura.io/filters-support-over-https/) (though limited).

* Add newsfragment

Co-authored-by: kclowes <[email protected]>
  • Loading branch information
htadashi and kclowes authored Mar 22, 2022
1 parent ca662c8 commit 533e292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ The :meth:`web3.eth.Eth.filter` method can be used to setup filters for:
.. note ::
Creating event filters requires that your Ethereum node has an API support enabled for filters.
It does not work with Infura nodes. To get event logs on Infura or other
stateless nodes please see :class:`web3.contract.ContractEvents`.
Note that Infura support for filters does not offer access to `pending` filters.
To get event logs on other stateless nodes please see :class:`web3.contract.ContractEvents`.
Filter Class
Expand Down Expand Up @@ -179,7 +180,7 @@ Getting events without setting up a filter
------------------------------------------

You can query an Ethereum node for direct fetch of events, without creating a filter first.
This works on all node types, including Infura.
This works on all node types.

For examples see :meth:`web3.contract.ContractEvents.getLogs`.

Expand Down
1 change: 1 addition & 0 deletions newsfragments/2322.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify info about Infura filters over HTTP

0 comments on commit 533e292

Please sign in to comment.