Hi everyone,
I’m currently exploring Canton and trying to understand how developers interact with the existing platform and token contracts.
I have a few questions about the practical development workflow:
- How can we see what functionality an existing platform/token contract provides?
For example, how can we inspect the available templates, interfaces, choices, parameters, and return values? Is there something similar to an ABI in Ethereum?
- Once we know the available choices, what is the recommended way to call them from an application?
For example, what would the typical flow look like:
Application → Canton API → Contract Choice
Are there any official examples showing this?
-
Where can we find the API/interface documentation for the existing platform contracts? Is the Daml source code the main reference, or is there generated documentation available?
-
Coming from Ethereum, I’m also trying to understand the equivalent concept of token standards.
Ethereum has standards such as ERC-20, ERC-721 and ERC-3643 with defined interfaces and functions. What is the closest equivalent approach in Canton? Should we think in terms of Daml interfaces, templates and choices, or are there specific Canton token standards that provide a similar abstraction?
- Are there any official sample projects showing how to build an application using these existing contracts without implementing the underlying contracts from scratch?
I’m mainly trying to understand how a developer discovers the available functionality and then integrates it into an application.
Thanks!