Skip to content
CCPEDIAby Unity Nodes
App Development

Mapping between different types/aliases at the API level and Daml templates

2 posts211 views1 likesLast activity Feb 2022

  1. meetOP

    Is it possible to map the Daml folder structure map to a different alias at the API level?
    Eg, instead of querying the API for A.B.C.D:Template1, I want to be able to map A.B.C.D:Template1 to, say, X.Y.Z:T and query the API for X.Y.Z:T instead.

    Is this possible or are the types exposed to the API client always going to have to be an exact match of the actual Daml folder structure?

  2. cocreature 1

    There is no way to provide aliases or remap module or template names. They are always exposed 1:1 on the ledger API.