How to fetch ledgerId in JAVA application
App Development2 posts366 views6 likesLast activity Nov 2020
LU
lubnavOP
Nov 2020 3I have created a middleware application in java to interact with DAML ledger deployed on Sandbox. So to generate the jwt token in the java application, how can I get the ledgerId?
CO
cocreature
Nov 2020 3Hi @lubnav, welcome to the forum!
To get the ledger id, you can use the getLedgerId method on DamlLedgerClient after you have connected. The Java quickstart guide includes an example of how you can setup the connection