# Tendermint RPC API

> GetBlock provides fast and reliable access to Cosmos nodes through the Tendermint RPC API.

The CometBFT (Tendermint) JSON-RPC interface for Cosmos Hub: node and consensus info, block and transaction reads, mempool inspection, transaction broadcast, low-level `abci_query` state reads, and WebSocket event subscriptions. The same methods are available over HTTP (JSON-RPC POST or URI GET) and over WebSocket for subscriptions.

## Endpoints

#### HTTP

```bash
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
```

#### WebSocket

```bash
wss://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/websocket
```

## Available API Methods

### Node Info & Health

| Method | Description |
| --- | --- |
| health | Returns an empty result if the node is healthy; otherwise an error |
| status | Returns node information: protocol and software version, network (chain id), latest block hash, app hash, block height and time, and the node's validator info and sync state |
| net_info | Returns peer-to-peer network information: the number of connected peers, listeners, and per-peer connection details |

### Blocks & Chain

| Method | Description |
| --- | --- |
| blockchain | Returns block metadata (headers) for a range of heights, newest first |
| block | Returns the block at a given height, including its header, data (transactions), and commit |
| block_by_hash | Returns a block by its hash |
| block_results | Returns the results of all transactions in a block: per-tx execution results, and the block's finalize-block events and validator/consensus-param updates |
| commit | Returns the commit (validator signatures) for a block at a given height, with a flag indicating whether it is canonical |
| header | Returns the block header at a given height |
| header_by_hash | Returns a block header by its hash |

### Consensus & Validators

| Method | Description |
| --- | --- |
| validators | Returns the validator set at a given height, paginated |
| consensus_state | Returns the current consensus state (round, step, and vote state) of the node |
| dump_consensus_state | Returns the full consensus state: the node's round state plus the state of all peers |
| consensus_params | Returns the consensus parameters (block size, evidence, and validator params) at a given height |
| genesis | Returns the genesis document |
| genesis_chunked | Returns the genesis document in chunks, for chains (like Cosmos Hub) whose genesis is too large to return in one response |

### Transactions

| Method | Description |
| --- | --- |
| tx | Returns a transaction by its hash, with its execution result and (optionally) a Merkle inclusion proof |
| tx_search | Searches transactions by an event-attribute query, with pagination and ordering |
| block_search | Searches blocks by an event-attribute query (over finalize-block events), with pagination and ordering |
| broadcast_tx_sync | Broadcasts a transaction and returns after CheckTx (mempool validation), without waiting for the transaction to be included in a block |
| broadcast_tx_async | Broadcasts a transaction and returns immediately, without running CheckTx or waiting for inclusion |
| broadcast_tx_commit | Broadcasts a transaction and waits until it is committed in a block, returning both the CheckTx and the execution results |
| check_tx | Runs a CheckTx against the application for a transaction without broadcasting it, returning the validation result |

### Mempool

| Method | Description |
| --- | --- |
| unconfirmed_txs | Returns transactions currently in the mempool, up to an optional limit |
| num_unconfirmed_txs | Returns the count and total size of transactions in the mempool, without the transaction bodies |

### ABCI Application Queries

| Method | Description |
| --- | --- |
| abci_info | Returns information about the ABCI application: its version and the last block height and app hash it has committed |
| abci_query | Runs an ABCI query against the application at a given path, optionally at a historical height and with a Merkle proof |

### WebSocket Subscriptions

| Method | Description |
| --- | --- |
| subscribe | Subscribes to events matching a Tendermint event query, over the WebSocket endpoint |
| unsubscribe | Cancels a specific subscription on the WebSocket connection, identified by its event query |
| unsubscribe_all | Cancels all subscriptions on the current WebSocket connection |

## See Also

* [Cosmos overview](/api-reference/cosmos/)
* [CometBFT RPC Reference](https://docs.cometbft.com/main/spec/rpc/)
* [Cosmos SDK Documentation](https://docs.cosmos.network/)
