We have exercise command with contractId as one of the field. ContractId can be fetched on listening to transaction events. How can we exercise a choice if contract key is known and not contractId?
It looks like the Node.js bindings don't currently cover ExerciseByKeyCommand
commands on the Ledger API:
I've added Issue #121 to the GitHub repo to track this gap.
In the meantime, you could consider using the JSON API instead for command submission, or indeed querying.