You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or built manually by supplying `valid filter params <https://github.com/ethereum/execution-apis/blob/bea0266c42919a2fb3ee524fb91e624a23bc17c5/src/schemas/filter.json#L28>`_:
33
28
@@ -203,9 +198,12 @@ Synchronous
203
198
204
199
.. code-block:: python
205
200
206
-
from web3.autoimportw3
201
+
from web3 importWeb3, IPCProvider
207
202
import time
208
203
204
+
# instantiate Web3 instance
205
+
w3 = Web3(IPCProvider(...))
206
+
209
207
defhandle_event(event):
210
208
print(event)
211
209
@@ -242,9 +240,11 @@ entries to a handler.
242
240
243
241
.. code-block:: python
244
242
245
-
from web3.autoimportw3
243
+
from web3 importWeb3, IPCProvider
246
244
import asyncio
247
245
246
+
# instantiate Web3 instance
247
+
w3 = Web3(IPCProvider(...))
248
248
249
249
defhandle_event(event):
250
250
print(event)
@@ -281,10 +281,12 @@ releasing the ``main`` function for other tasks.
0 commit comments