Canton .NET SDK 0.7.0: from a Daml model to a tested .NET app on Canton 3.6
- matthieuOP 1
Canton .NET SDK 0.7.0 is out: a stable, open-source (Apache-2.0) SDK for building on Canton 3.6 in C# and .NET. All packages are on nuget.org.
Many teams in finance build and run their systems on .NET. This SDK takes them from a Daml model to a tested Canton application without leaving their language and tooling.
What it does:
- Generate your model.
dpm codegen-csturns a Daml package into typed C#, so mistakes show up when the code compiles rather than on the ledger. Ready-made packages cover the Splice Token Standard and Daml Finance. - Talk to the ledger. One client submits over gRPC or the JSON Ledger API, and the PQS client queries contracts with the same generated types.
- Sign with confidence. For external signing, the client recomputes the transaction hash and refuses a mismatch before anything is signed.
- Test and observe. In-memory test doubles serve your unit tests, and OpenTelemetry traces each call.
- Every release passes end-to-end tests against Canton LocalNet.
- Teams still on Canton 3.5 should stay on 0.6.x.
- The announcement and release notes have the details.
Start here:
- Run the demo app. It runs a Token Standard V2 transfer from Daml source to a local Canton ledger in about 20 minutes, once .NET, a JDK and Docker are installed.
- See it in action:
- One demo run as a single trace across gRPC, the JSON Ledger API and PQS
- A typed C# query and the Postgres it becomes
- Canton LocalNet in your own CI, a GitHub Action to test your app against a real ledger, in any language, not only .NET, and release with peace of mind
- Tell us what you’re building. If your team builds in .NET and is looking at Canton, we’d like to help you get started. Share your project in this thread, or email info@peaceful.studio.
Peaceful Studio
- Generate your model.
- matthieu
0.8.0 is out, supporting Canton 3.7

The SDK now pins the protos and the JSON Ledger API spec at Canton 3.7.1 (every 3.7.x patch works) and ships C# bindings for Splice 0.10.0. Teams still on Canton 3.6 can stay on 0.7.x. Here is what is new since the post above, with a walkthrough for each on GitHub:
- Daml codegen at
dotnet build, no JDK needed. AddDaml.Codegen.CSharp.MSBuildand a<DamlArchive Include="contracts.dar" />item, and the bindings are generated during the build by a .NET DAR decoder that ships inside the package.dpm codegen-csis still there if you prefer it. Walkthrough - Writes you can reason about.
CommandBatchsubmits several commands as one atomic transaction with typed results,RecoverAsyncresolves a write left in an unknown state as committed, rejected or lost, and the newCanton.Ledger.AspNetCorepackage maps ledger outcomes to RFC 9457 ProblemDetails. Walkthrough - A typed Token Standard registry client.
Splice.Api.Token.Registry.Clientcovers the registries’ off-ledger API, andCreatedEventBlob.Decodechecks the signatories of the disclosed contracts before you submit. Walkthrough - An Intermediate DAR oracle for every SDK author. Each release publishes the JVM reference decoding (built on Digital Asset’s
daml-lf-archive) of a conformance corpus of DARs, and theintermediate-dar-oracle-checkGitHub Action diffs your own decoder against it. Useful if you are writing a Canton SDK in Rust, Go, TypeScript or any other language, without running a JVM yourself. Walkthrough
The matching stack is Canton LocalNet v0.10.0-1 (Splice 0.10.0, Canton 3.7.1, protocol version 37 by default), and the mini demo is on 0.8.0 too.
0.8.0 is a breaking release: bump all SDK packages together, run
dpm install 3.7.1and regenerate your bindings. The release notes list every API change, and the GitHub announcement is open for questions.We’d like to hear how the upgrade goes and what you would improve. Bugs are easiest to track as GitHub issues.
- Daml codegen at
