Using @daml/ledger to query ledger - declaring template`

Hi Alex, @daml/ledger is really intended to be used in combination with the JavaScript codegen which will generate the template for you. I recommend the related post at Attempting to create a contract is sending the wrong templateId for some more details on that.

2 Likes