File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -282,18 +282,10 @@ AsyncHTTPProvider
282
282
>> > from web3.net import AsyncNet
283
283
>> > from web3.geth import Geth, AsyncGethTxPool
284
284
285
- >> > w3 = Web3(
286
- ... AsyncHTTPProvider(endpoint_uri),
287
- ... modules = {' eth' : (AsyncEth,),
288
- ... ' net' : (AsyncNet,),
289
- ... ' geth' : (Geth,
290
- ... {' txpool' : (AsyncGethTxPool,),
291
- ... ' personal' : (AsyncGethPersonal,),
292
- ... ' admin' : (AsyncGethAdmin,)})
293
- ... },
294
- ... middlewares = [] # See supported middleware section below for middleware options
295
- ... )
296
- >> > custom_session = ClientSession() # If you want to pass in your own session
285
+ >> > w3 = Web3(AsyncHTTPProvider(endpoint_uri))
286
+
287
+ >> > # If you want to pass in your own session:
288
+ >> > custom_session = ClientSession()
297
289
>> > await w3.provider.cache_async_session(custom_session) # This method is an async method so it needs to be handled accordingly
298
290
299
291
Under the hood, the ``AsyncHTTPProvider `` uses the python
You can’t perform that action at this time.
0 commit comments