How to extract an interface ID?
- LucianoOP
How would I got about finding the interface id corresponding to a definition in a daml source file? I need this to exercise a choice on the JSON api.
I’ve tried
daml damlc inspect, canton console, and navigator, but I haven’t had much luck so far. - Luciano
So I found a rather silly but simple way to do this: I used the typescript code generation and then looked at the resulting source code.
- Stephen
All codegens include the package ID where necessary, and make it so you can exercise choices without referring to any string IDs directly. If your language doesn’t have a Daml codegen, you can use inspect-jar as mentioned here.