Canton.Ledger.Grpc 0.4.0-preview.1

Prefix Reserved
This is a prerelease version of Canton.Ledger.Grpc.
dotnet add package Canton.Ledger.Grpc --version 0.4.0-preview.1
                    
NuGet\Install-Package Canton.Ledger.Grpc -Version 0.4.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Canton.Ledger.Grpc" Version="0.4.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Canton.Ledger.Grpc" Version="0.4.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Canton.Ledger.Grpc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Canton.Ledger.Grpc --version 0.4.0-preview.1
                    
#r "nuget: Canton.Ledger.Grpc, 0.4.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Canton.Ledger.Grpc@0.4.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Canton.Ledger.Grpc&version=0.4.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Canton.Ledger.Grpc&version=0.4.0-preview.1&prerelease
                    
Install as a Cake Tool

Canton.Ledger.Grpc

Generated gRPC client stubs for the Canton Ledger API.

Overview

This package provides low-level gRPC client stubs generated from the official Canton Ledger API protobuf definitions (Canton Ledger API version 3.4.11). It enables direct communication with Canton participant nodes.

All generated types live under the Com.Daml.Ledger.Api.V2 namespace (admin services under Com.Daml.Ledger.Api.V2.Admin), matching the csharp_namespace set in the upstream proto files. No type lives under Canton.Ledger.Grpc — that is only the NuGet package and assembly name.

Services Included

Command Services

  • CommandService - Submit commands and wait for results
  • CommandSubmissionService - Async command submission
  • CommandCompletionService - Track command completions

Query Services

  • StateService - Query active contracts and ledger state
  • UpdateService - Stream ledger updates
  • EventQueryService - Query historical events

Admin Services

  • PartyManagementService - Allocate and manage parties
  • UserManagementService - Manage ledger users and rights
  • PackageManagementService - Upload and manage Daml packages

Usage

using Com.Daml.Ledger.Api.V2;
using Com.Daml.Ledger.Api.V2.Admin;
using Grpc.Net.Client;

// Create a gRPC channel
var channel = GrpcChannel.ForAddress("https://localhost:5001");

// Create service clients
var commandService = new CommandService.CommandServiceClient(channel);
var partyService = new PartyManagementService.PartyManagementServiceClient(channel);

// Submit a command
var response = await commandService.SubmitAndWaitAsync(new SubmitAndWaitRequest
{
    Commands = new Commands { ... }
});

Version

Generated from Canton Ledger API protos version 3.4.11 (downloaded from Maven Central at build time).

  • Canton.Ledger.Grpc.Client - High-level client with integration to Daml.Runtime
  • Daml.Runtime - Runtime types for generated Daml contracts
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Canton.Ledger.Grpc:

Package Downloads
Daml.Runtime.Grpc

Bidirectional conversion between Daml.Runtime value types and Canton Ledger API v2 protobuf messages.

Canton.Ledger.Grpc.Client

High-level gRPC client for the Canton Ledger API with integration to Daml.Runtime types.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0-preview.1 105 7/18/2026
0.2.0-preview.1 104 7/6/2026
0.1.5-preview.1 80 6/25/2026
0.1.4-preview.1 68 6/15/2026