# What does Root Event mean for a Transaction?

**URL:** <https://forum.canton.network/t/what-does-root-event-mean-for-a-transaction/3333>\
**Category:** App Development\
**Created:** [October 20, 2021, 3:13am UTC](https://forum.canton.network/t/what-does-root-event-mean-for-a-transaction/3333 "2021-10-20T03:13:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiuu](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/shiuu/32/2222_2.png) [@shiuu](https://forum.canton.network/u/shiuu)\
**Post date:** [October 20, 2021, 3:13am UTC](https://forum.canton.network/t/what-does-root-event-mean-for-a-transaction/3333/1 "2021-10-20T03:13:07Z")

</div>

TransactionTree has a property RootEventIds: [Generated Documentation (Untitled)](https://docs.daml.com/0.13.34/app-dev/bindings-java/javadocs/index.html?com/daml/ledger/javaapi/data/TransactionTree.html)  
What is the significance of Root Event?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [October 20, 2021, 6:43am UTC](https://forum.canton.network/t/what-does-root-event-mean-for-a-transaction/3333/2 "2021-10-20T06:43:36Z")

</div>

The root events correspond to the commands you submitted. So if you submit a create command, the corresponding create event will be a root event id. If you submit an exercise command, the corresponding exercise event will be a root event id (but not the children of that exercise).

For single-command submissions there will only be one root event id. For multi-command submissions you get one per command. There is one slight caveat: `createAndExercise` produces both a create event and an exercise event so in that case one command maps to two root events.

A common usecase for root events is to traverse the transaction tree in execution order where you start with the root event ids and then traverse each node before traversing its children.
