# 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:** 1\
**Showing post:** 2

<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.

---

_[View the full topic](https://forum.canton.network/t/how-can-i-extract-ledger-id-is-there-any-end-point-that-can-be-used-for-the-same/1654)._
