def get_slow_provider(self, timeout: int):
        """
        Get web3 provider for slow queries. Default `HTTPProvider` timeouts after 10 seconds
        :param provider: Configured Web3 provider
        :param timeout: Timeout to configure for internal requests (default is 10)
        :return: A new web3 provider with the `slow_provider_timeout`
        """
        if isinstance(self.w3_provider, AutoProvider):
            return HTTPProvider(endpoint_uri='http://localhost:8545',
                                request_kwargs={'timeout': timeout})
        elif isinstance(self.w3_provider, HTTPProvider):
            return HTTPProvider(endpoint_uri=self.w3_provider.endpoint_uri,
                                request_kwargs={'timeout': timeout})
        else:
            return self.w3_provider
def get_slow_provider(self, timeout: int):
        """
        Get web3 provider for slow queries. Default `HTTPProvider` timeouts after 10 seconds
        :param provider: Configured Web3 provider
        :param timeout: Timeout to configure for internal requests (default is 10)
        :return: A new web3 provider with the `slow_provider_timeout`
        """
        if isinstance(self.w3_provider, AutoProvider):
            return HTTPProvider(endpoint_uri='http://localhost:8545',
                                request_kwargs={'timeout': timeout})
        elif isinstance(self.w3_provider, HTTPProvider):
            return HTTPProvider(endpoint_uri=self.w3_provider.endpoint_uri,
                                request_kwargs={'timeout': timeout})
        else:
            return self.w3_provider
def get_slow_provider ( self , timeout : int ) : if isinstance ( self . w3_provider , AutoProvider ) : return HTTPProvider ( endpoint_uri = 'http://localhost:8545' , request_kwargs = { 'timeout' : timeout } ) elif isinstance ( self . w3_provider , HTTPProvider ) : return HTTPProvider ( endpoint_uri = self . w3_provider . endpoint_uri , request_kwargs = { 'timeout' : timeout } ) else : return self . w3_provider
Get web3 provider for slow queries. Default `HTTPProvider` timeouts after 10 seconds
        :param provider: Configured Web3 provider
        :param timeout: Timeout to configure for internal requests (default is 10)
        :return: A new web3 provider with the `slow_provider_timeout`
Get web3 provider for slow queries . Default HTTPProvider timeouts after 10 seconds : param provider : Configured Web3 provider : param timeout : Timeout to configure for internal requests ( default is 10 ) : return : A new web3 provider with the slow_provider_timeout