# How can I listen to epoch changes?

**URL:** <https://forums.sui.io/t/how-can-i-listen-to-epoch-changes/45723>\
**Category:** SDK\
**Created:** [June 17, 2024, 12:13pm UTC](https://forums.sui.io/t/how-can-i-listen-to-epoch-changes/45723 "2024-06-17T12:13:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefanos](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/stefanos/32/1459_2.png) [@Stefanos](https://forums.sui.io/u/Stefanos)\
**Post date:** [June 17, 2024, 12:13pm UTC](https://forums.sui.io/t/how-can-i-listen-to-epoch-changes/45723/1 "2024-06-17T12:13:19Z")

</div>

Question from Discord (sui-sdk channel):

> I want to listen to the event when a new epoch is updated, how do I filter? I use typescript.  
> Hope everyone supports

---

<div class="post-metadata">

**Author:** ![Stefanos](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/stefanos/32/1459_2.png) [@Stefanos](https://forums.sui.io/u/Stefanos)\
**Post date:** [June 17, 2024, 12:13pm UTC](https://forums.sui.io/t/how-can-i-listen-to-epoch-changes/45723/2 "2024-06-17T12:13:35Z")

</div>

An epoch changes every ~24h and its part of the protocol so you won’t be able to listen for it in the events. Having said that you can query the current epoch with the `getCurrentEpoch` method.
