patch_web3
Documentation for eth_defi.event_reader.fast_json_rpc.patch_web3 function.
- patch_web3(web3)[source]
Monkey-patch web3.py provider for faster JSON decoding and additional logging.
This greatly improves JSON-RPC API access speeds, when fetching multiple and large responses.
Example:
from eth_defi.event_reader.fast_json_rpc import patch_web3 patch_web3(web3)
- Parameters
web3 (web3.main.Web3) –