# Are ContractIds unique across templates in the same dar?

**URL:** <https://forum.canton.network/t/are-contractids-unique-across-templates-in-the-same-dar/4448>\
**Category:** App Development\
**Tags:** contract-id\
**Created:** [April 28, 2022, 9:25am UTC](https://forum.canton.network/t/are-contractids-unique-across-templates-in-the-same-dar/4448 "2022-04-28T09:25:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felix\_Kam](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/felix_kam/32/66_2.png) [@Felix\_Kam](https://forum.canton.network/u/Felix_Kam)\
**Post date:** [April 28, 2022, 9:25am UTC](https://forum.canton.network/t/are-contractids-unique-across-templates-in-the-same-dar/4448/1 "2022-04-28T09:25:58Z")

</div>

If I have two templates T1, T2, can I get a contarctId for a contract of T1 that’s the same as another contractId under T2 ?

---

<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:** [April 28, 2022, 9:42am UTC](https://forum.canton.network/t/are-contractids-unique-across-templates-in-the-same-dar/4448/2 "2022-04-28T09:42:13Z")

</div>

Contract ids are unique across templates so you don’t have to worry about them colliding for different template.

---

<div class="post-metadata">

**Author:** ![Shivaganesh](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/shivaganesh/32/4592_2.png) [@Shivaganesh](https://forum.canton.network/u/Shivaganesh)\
**Post date:** [March 17, 2023, 7:47am UTC](https://forum.canton.network/t/are-contractids-unique-across-templates-in-the-same-dar/4448/3 "2023-03-17T07:47:08Z")

</div>

Hi @cocreature , Do we have any info about collision probability of contractIds?
