# How can I extract ledger ID? is there any end point that can be used for the same?

**URL:** <https://forum.canton.network/t/how-can-i-extract-ledger-id-is-there-any-end-point-that-can-be-used-for-the-same/1654>\
**Category:** App Development\
**Tags:** ledger-api\
**Created:** [November 17, 2020, 2:11pm UTC](https://forum.canton.network/t/how-can-i-extract-ledger-id-is-there-any-end-point-that-can-be-used-for-the-same/1654 "2020-11-17T14:11:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Jain](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/abhishek_jain/32/1047_2.png) [@Abhishek\_Jain](https://forum.canton.network/u/Abhishek_Jain)\
**Post date:** [November 17, 2020, 2:11pm UTC](https://forum.canton.network/t/how-can-i-extract-ledger-id-is-there-any-end-point-that-can-be-used-for-the-same/1654/1 "2020-11-17T14:11:05Z")

</div>

How can I extract ledger ID? is there any end point that can be used for the same?

---

<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:** [November 17, 2020, 3:30pm UTC](https://forum.canton.network/t/how-can-i-extract-ledger-id-is-there-any-end-point-that-can-be-used-for-the-same/1654/2 "2020-11-17T15:30:13Z")

</div>

Hi @Abhishek_Jain, you can use the [ledger identity service](https://docs.daml.com/app-dev/services.html#ledger-identity-service) for that. If you are using the Java binidngs, take a look at [How to fetch ledgerId in JAVA application](https://discuss.daml.com/t/how-to-fetch-ledgerid-in-java-application/1648) for how you can interact with that service.

---

<div class="post-metadata">

**Author:** ![Abhishek\_Jain](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/abhishek_jain/32/1047_2.png) [@Abhishek\_Jain](https://forum.canton.network/u/Abhishek_Jain)\
**Post date:** [November 17, 2020, 4:23pm UTC](https://forum.canton.network/t/how-can-i-extract-ledger-id-is-there-any-end-point-that-can-be-used-for-the-same/1654/3 "2020-11-17T16:23:30Z")

</div>

I got it …thanks
