window.ethereum.on('accountsChanged', function (accounts) { // Time to reload your interface with accounts[0]! })