# Transactions offset in Dazl library

**URL:** <https://forum.canton.network/t/transactions-offset-in-dazl-library/5677>\
**Category:** App Development\
**Created:** [November 21, 2022, 3:32pm UTC](https://forum.canton.network/t/transactions-offset-in-dazl-library/5677 "2022-11-21T15:32:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dtanabe](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/dtanabe/32/91_2.png) [@dtanabe](https://forum.canton.network/u/dtanabe)\
**Post date:** [November 21, 2022, 4:24pm UTC](https://forum.canton.network/t/transactions-offset-in-dazl-library/5677/2 "2022-11-21T16:24:18Z")

</div>

Answered here with respect to offsets:

> [@Streaming help with dazl](https://discuss.daml.com/t/streaming-help-with-dazl/4649/2):
>
> .stream() takes an offset parameter, so you can simply pass that: async with conn.stream(offset="...") as stream: async for event in stream.creates(): ... But because you’d need to also get offsets, you’d need to use a slightly different API: async with conn.stream(offset="...") as stream: async for event in stream: if isinstance(event, CreateEvent): ... elif isinstance(event, Boundary): # remember this offset somehow ... =…

You’re right that it’s not in the docs; we’ll update the docs for the latest version of the library. Sorry about that!

---

_[View the full topic](https://forum.canton.network/t/transactions-offset-in-dazl-library/5677)._
