Skip to main content
Low-level RPC client for communicating with Tendermint/CometBFT nodes. Supports HTTP and WebSocket transports, and auto-detects the node version.

connectComet

Auto-detects the CometBFT/Tendermint version and returns the appropriate client.

CometClient

CometClient is a union type of all version-specific clients: Tendermint37Client | Comet38Client | Comet1Client. They share these methods:

Version-Specific Clients

Tendermint37Client

For Tendermint 0.37 nodes.

Comet38Client

For CometBFT 0.38 nodes.

Comet1Client

For CometBFT 1.x nodes.

Type Guards

These are TypeScript type predicates, so the compiler narrows the client type in the branch where the guard returns true.

RPC Clients

Low-level HTTP and WebSocket implementations.

HttpClient

Standard HTTP client for request/response RPC.

HttpBatchClient

Batches multiple RPC requests into a single HTTP call.

WebsocketClient

WebSocket client for streaming subscriptions.

Key Types

HttpEndpoint

RpcClient

BlockIdFlag

Date Utilities

Address Utilities