Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Canton .NET SDK 0.7.0: typed C# from a DAR to the ledger → try the demoForum ↗

Canton .NET SDK 0.7.0: typed C# from a DAR to the ledger → try the demo

App Development1 posts6 viewsLast activity 8h ago
MA
matthieuOP
8h ago

Hi all,

Canton .NET SDK 0.7.0 is out: a stable, open-source (Apache-2.0) SDK for building on Canton in C#. All packages are on nuget.org. If you build in C#, the 20-minute demo is the fastest way to see what it does.

0.7.0 targets Canton 3.6, Splice 0.9.1, Daml SDK 3.6.0 and .NET 10. Every release passes end-to-end tests against an up-to-date LocalNet. If your participant is still on Canton 3.5, stay on 0.6.x.

What it lets you do

  1. Generate typed C# from any DAR. dpm codegen-cs emits records for templates and data types, typed choices, and Try…Async methods to create contracts and exercise choices. Ready-made Splice.* (Token Standard) and Daml Finance packages are on NuGet.
  2. Talk to the ledger through one client. ICantonLedgerClient submits and streams over gRPC or the JSON Ledger API.
  3. Query PQS in C#. Queries are typed predicates that translate to SQL.
  4. Trace every call with OpenTelemetry, over either API or to PQS.
  5. Unit-test without a ledger. In-memory test doubles ship in the Canton.Ledger.Testing package.

See it in action

Or run it yourself with the mini-demo. The demo takes a Token Standard V2 transfer from Daml source to a local Canton ledger with one dotnet run, over gRPC and the JSON Ledger API, and reads it back from PQS. Setup and run take about 20 minutes once .NET, a JDK and Docker are installed.

Feedback

Share your run in the feedback thread, and anything you’d improve. Bugs go to issues. The 0.7.0 announcement has the details and upgrade notes.

If you’re integrating the SDK into an existing system or building something new with it, we’re happy to help. Ask here, tell us what you’re building, or email info@peaceful.studio.

Peaceful Studio

← Back to Discussions