Interface for Exercise by Key command in DAML node js binding?

75 views Asked by At

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?

1

There are 1 answers

0
bame On BEST ANSWER

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.