Skip to main content
CometBFT provides a comprehensive RPC API for interacting with nodes, querying blockchain data, broadcasting transactions, and subscribing to real-time events.

RPC API Reference

Visit the API Reference page for a list of all CometBFT RPC methods
The RPC server supports multiple protocols:
  • URI over HTTP - REST-like interface for simple queries
  • JSONRPC over HTTP - Standard JSON-RPC 2.0 protocol
  • JSONRPC over WebSockets - Persistent connection with subscription support

Quick Start

By default, the RPC server listens on tcp://127.0.0.1:26657. You can query it using curl:

Configuration

The RPC server can be configured in your config.toml file under the [rpc] section:
See the Configuration page for more details on RPC configuration options.