Skip to content

Commit 7882513

Browse files
committed
Update documentation for AsyncHTTPProvider instantiation.
1 parent 7ffd261 commit 7882513

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/providers.rst

+4-12
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,10 @@ AsyncHTTPProvider
282282
>>> from web3.net import AsyncNet
283283
>>> from web3.geth import Geth, AsyncGethTxPool
284284
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()
297289
>>> await w3.provider.cache_async_session(custom_session) # This method is an async method so it needs to be handled accordingly
298290
299291
Under the hood, the ``AsyncHTTPProvider`` uses the python

0 commit comments

Comments
 (0)