<pre><code>     var handle: any = await window.cardano.nami.enable() handle.experimental.on('accountChange',(addresses: any ) =&gt; { 
    console.log(addresses) 
  }
</code></pre>

CC BY-SA 4.0
2023-02-12T12:17:32.057Z
2023-02-12T12:18:45.197Z
2023-02-12T12:18:45.197Z
Jean-Marc
<p>As far as I know, there isn't.</p>
<p>You probably need to check the <code>cardano.wallet.name</code> periodically.</p>

CC BY-SA 4.0
2023-01-27T07:49:30.360Z
2023-01-27T07:49:30.360Z
Marek Mahut - StakeNuts
<p>How do i detect that my user has switched their wallet to a different one in browser. When a user connects their wallet to my web app, we store their wallet address temporarily for use in the future.Let's say they are currently interacting with my web app using Nami wallet. Nami wallet allows user to switch multiple different wallets. How do i detect that a user has switched to a different wallet.</p>
<p>In Solana and Ethereum they have something like this.</p>
<pre><code>connector.on(...)
</code></pre>
<p>Is there an equivilant of that for Cardano.</p>

<wallet><nami-wallet><cip30>
How to detect a wallet change event
# How to detect a wallet change event

(Asked by: username_0 on 2022-12-08)

How do i detect that my user has switched their wallet to a different one in browser. When a user connects their wallet to my web app, we store their wallet address temporarily for use in the future.Let's say they are currently interacting with my web app using Nami wallet. Nami wallet allows user to switch multiple different wallets. How do i detect that a user has switched to a different wallet.
In Solana and Ethereum they have something like this.
connector.on(...)

Is there an equivilant of that for Cardano.

**Tags:** wallet, nami-wallet, cip30

---

## 2 answers

### Answer by username_1 on 2023-02-12. Score: 1

var handle: any = await window.cardano.nami.enable() handle.experimental.on('accountChange',(addresses: any ) => { 
    console.log(addresses) 
  }


---

### Answer by username_2 on 2023-01-27. Score: 0

As far as I know, there isn't.

You probably need to check the `cardano.wallet.name` periodically.


---

