# How to use Keplr's keplr\_keystorechange event

**URL:** <https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732>\
**Category:** Secret Contracts and Secret Apps\
**Created:** [January 5, 2023, 8:39pm UTC](https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732 "2023-01-05T20:39:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsoneaday](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/jsoneaday/32/3943_2.png) [@jsoneaday](https://forum.scrt.network/u/jsoneaday)\
**Post date:** [January 5, 2023, 8:39pm UTC](https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732/1 "2023-01-05T20:39:52Z")

</div>

Hello I am new to keplr wallet and am trying to use the event. So I created two accounts inside of keplr and can switch between them, and then event does run.

However when I switch between the two accounts the address shown under the account name on the main screen remains the same address. Why would that be?

Additionally once the event happens am I supposed to rerun the enable and getOfflineSigner functions, since they are technically different accounts? Anything else I need to do?

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [January 7, 2023, 6:55am UTC](https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732/2 "2023-01-07T06:55:26Z")

</div>

Hi @jsoneaday

You only need to call `keplrOfflineSigner.getAccounts()` when the event occurs, then pass that wallet into the SecretNetworkClient you’re using to sign transactions or run queries.

[Here’s a simple example](https://codesandbox.io/s/laughing-fog-b2rm36?file=/src/App.js:3126-3317)

---

<div class="post-metadata">

**Author:** ![assafmo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/assafmo/32/440_2.png) [@assafmo](https://forum.scrt.network/u/assafmo)\
**Post date:** [January 7, 2023, 9:13am UTC](https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732/3 "2023-01-07T09:13:13Z")

</div>

Yes you need to rerun enable() and getOfflineSigner()

---

<div class="post-metadata">

**Author:** ![jsoneaday](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/jsoneaday/32/3943_2.png) [@jsoneaday](https://forum.scrt.network/u/jsoneaday)\
**Post date:** [January 7, 2023, 3:43pm UTC](https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732/4 "2023-01-07T15:43:34Z")

</div>

Thanks guys. And this is another thing that seems weird to me. Even after I change accounts. The address directly under the account name listed within the extension screen does not change. It’s the same address between account changes. Why is that?

![Screenshot 2023-01-07 at 10.41.52 AM](https://canada1.discourse-cdn.com/flex035/uploads/enigma1/original/2X/5/59f14580becdb6e430b05eb2e364336cce2acec6.png)

---

<div class="post-metadata">

**Author:** ![AustinW](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/austinw/32/915_2.png) [@AustinW](https://forum.scrt.network/u/AustinW)\
**Post date:** [January 7, 2023, 3:53pm UTC](https://forum.scrt.network/t/how-to-use-keplrs-keplr-keystorechange-event/6732/5 "2023-01-07T15:53:15Z")

</div>

I would recommend taking a look at griptape.js, a bootstrapping framework to get you started with keplr and secret network smart contracts on the front end. You’ll find some answers in there for how to use keplr events.

[https://griptapejs.com/](https://griptapejs.com/)

I’m a front end developer for shade protocol, let me know if you have any questions!
