StaticCallCacheMiddleware
Documentation for eth_defi.middleware.StaticCallCacheMiddleware Python class.
- class StaticCallCacheMiddleware
Bases:
web3.middleware.base.Web3MiddlewareCache JSON-RPC call values that never change.
The cache is stored on the web3 instance itself, to allow sharing the cache between different JSON-RPC providers.
Methods summary
__init__(w3)async_request_processor(method, params)async_response_processor(method, response)async_wrap_make_batch_request(make_batch_request)async_wrap_make_request(make_request)request_processor(method, params)response_processor(method, response)wrap_make_batch_request(make_batch_request)wrap_make_request(make_request)- __init__(w3)