# RPC (getBlock, WebSocket)

### What it is

Standard Solana JSON-RPC API for querying confirmed blocks and subscribing to updates via WebSocket.

### Latency

\~400-800ms+ — Data is available after block confirmation and propagation across the network.

### Data format

JSON responses containing:

* Fully confirmed blocks
* Parsed transactions
* Account states
* Network status

### Pros

* Simple HTTP/WebSocket integration
* Guaranteed data consistency
* Historical data access
* Wide library support
* No special infrastructure needed

### Cons

* Highest latency of the three options
* Not suitable for latency-sensitive strategies
* Rate limits may apply

### Best for

* General applications
* Wallets and explorers
* Analytics and reporting
* Applications where correctness matters more than speed

### Example use case

A portfolio tracker queries confirmed transactions to display user balances and transaction history.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thornode.io/infrastructure/thor-shredstream/choose-your-data-source/rpc-getblock-websocket.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
