Disconnect

Event emitted upon the wallet losing connection to the RPC provider.

This is not a user "disconnecting" from a dapp, or otherwise revoking access between the dapp and the wallet.

 window.ethereum.on('disconnect', () => {
      console.log('lost connection to the rpc)
});

Last updated