I was trying to get the latest contract id of the exercised command. The CommandService in Ledger API was not returning the latest contract id when the contracts get executed. I could see that the SubmitAndWait is returning the empty as per the below documentation link.
https://docs.daml.com/app-dev/ledger-api-introduction/proto-docs.html#commandservice
Is there any other method will help us to get the executed/created contract id?
Also, is there any method will help me to pull the contract information based on the contract id?