def METHOD_NAME(self) -> None:
    """Disconnects from a provider"""
    if self.provider:
        self.provider = None
        self._genesis_hash = None
        self._chain_uri = None
        self._supports_traces = None
        self._chain_id = None
        self._remove_middlewares()