Rinzler78.CometBFT.Client 2.3.0

dotnet add package Rinzler78.CometBFT.Client --version 2.3.0
                    
NuGet\Install-Package Rinzler78.CometBFT.Client -Version 2.3.0
                    
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="Rinzler78.CometBFT.Client" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rinzler78.CometBFT.Client" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Rinzler78.CometBFT.Client" />
                    
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 Rinzler78.CometBFT.Client --version 2.3.0
                    
#r "nuget: Rinzler78.CometBFT.Client, 2.3.0"
                    
#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 Rinzler78.CometBFT.Client@2.3.0
                    
#: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=Rinzler78.CometBFT.Client&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Rinzler78.CometBFT.Client&version=2.3.0
                    
Install as a Cake Tool

CometBFT.Client.Extensions

Dependency injection extensions for the CometBFT.Client library suite. Targets CometBFT protocol version v0.38.9.

Installation

dotnet add package Rinzler78.CometBFT.Client

This single package pulls in all three transports (REST, WebSocket, gRPC) and their dependencies.

Breaking Change Notice

The removal of AddCometBftSdkGrpc, ICometBftSdkGrpcClient, and CometBftSdkGrpcOptions is a breaking API change. Any release that includes this change must be published as a major version.

If you previously used the Cosmos SDK gRPC service (cosmos.base.tendermint.v1beta1), migrate that dependency to Rinzler78.Cosmos.Client and keep this package for CometBFT-native transports only.

Usage

using Microsoft.Extensions.DependencyInjection;
using CometBFT.Client.Extensions;

var services = new ServiceCollection();

// Register all three CometBFT-native transports in one call
services.AddCometBftClient(options =>
{
    options.RestBaseUrl      = "http://localhost:26657";
    options.WebSocketBaseUrl = "ws://localhost:26657/websocket";
    options.GrpcBaseUrl      = "http://localhost:9090";
});

Individual transport registration

// REST
services.AddCometBftRest(options =>
{
    options.BaseUrl           = "http://localhost:26657";
    options.Timeout           = TimeSpan.FromSeconds(30);
    options.MaxRetryAttempts  = 3;
});

// WebSocket
services.AddCometBftWebSocket(options =>
{
    options.BaseUrl = "ws://localhost:26657/websocket";
});

// gRPC — CometBFT BroadcastAPI (Ping + BroadcastTx)
services.AddCometBftGrpc(options =>
{
    options.BaseUrl = "http://localhost:9090";
});

Extension methods

Method Registers
AddCometBftClient REST + WebSocket + gRPC (all three CometBFT-native transports)
AddCometBftRest ICometBftRestClient + Polly HTTP pipeline
AddCometBftWebSocket ICometBftWebSocketClient
AddCometBftGrpc ICometBftGrpcClient + gRPC channel (CometBFT BroadcastAPI)

Cosmos SDK gRPC (cosmos.base.tendermint.v1beta1) is NOT part of this package. That service is a Cosmos SDK addition and belongs in Rinzler78.Cosmos.Client.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 173 5/2/2026
2.2.0 105 4/30/2026
2.1.0 117 4/22/2026
2.0.0 114 4/22/2026
1.0.0 111 4/21/2026
0.1.0 106 4/18/2026