Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to extract an interface ID?Forum ↗

How to extract an interface ID?

App Development3 posts259 viewsLast activity Jul 2023
LU
LucianoOP
Jun 2023

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.

LU
Luciano
Jun 2023

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.

ST
Stephen
Jul 2023

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.

← Back to Discussions