event_reader.fast_json_rpc

Documentation for eth_defi.event_reader.fast_json_rpc module.

JSON-RPC decoding optimised for web3.py.

Monkey-patches JSON decoder to use ujson.

Functions

patch_provider(provider)

Monkey-patch web3.py provider for faster JSON decoding.

patch_web3(web3)

Monkey-patch web3.py provider for faster JSON decoding.

Exceptions

IPCFlaky

IPCProvider expects JSONDecodeErrors, not value errors.