static_call_cache_middleware Documentation for eth_defi.middleware.static_call_cache_middleware function. static_call_cache_middleware(make_request, web3)[source] Cache JSON-RPC call values that never change. The cache is web3 instance itself, to allow sharing the cache between different JSON-RPC providers. Parameters make_request (Callable[[web3.types.RPCEndpoint, Any], Any]) – web3 (web3.main.Web3) – Return type Callable[[web3.types.RPCEndpoint, Any], Any]