ethereum / web3.py

A python interface for interacting with the Ethereum blockchain and ecosystem.
http://web3py.readthedocs.io
MIT License
4.97k stars 1.7k forks source link

V7 support for request batching #3370

Closed fselmo closed 5 months ago

fselmo commented 5 months ago

What was wrong?

Closes #832

How was it fixed?

Add batch request support to the RequestManager via a context manager. Expose this as a high-level API on the Web3 / AsyncWeb3 class itself (w3.batch_requests()).

Todo:

Cute Animal Picture

Screenshot 2024-04-30 at 15 38 09
fselmo commented 5 months ago

This is good for an initial review. It's still missing documentation but that may be best in a separate PR? Thoughts there? Usage examples can be seen in the tests for now.