0

Does anyone have any luck with the window.ethereum.on('disconnect', error => console.log(error)) event listener??

I have tried using it and check to see if window.ethereum is still connected after creating the listener... and yes it is still connected. I want to be able to disconnect my metamask onClick of a button, but i'm not sure I am doing it correctly.

How do I trigger the disconnect event listener?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.