> For the complete documentation index, see [llms.txt](https://docs-unified.crypto-chief.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-unified.crypto-chief.com/api-reference/blocks.md). Agents can also search and read this documentation through its [MCP server](https://docs-unified.crypto-chief.com/~gitbook/mcp).

# Blocks

## Blocks

### Get a block

`GET /v1/blocks/{network}/{block}`

A block header with its finality, and optionally its transactions or a flat list of its transfers.

#### Parameters

| Parameter | In    | Type   | Required | Description                                                                  |
| --------- | ----- | ------ | -------- | ---------------------------------------------------------------------------- |
| `network` | path  | string | Yes      | Network code or CAIP-2 alias                                                 |
| `block`   | path  | string | Yes      | Height, hash, `latest` (the head) or `finalized` (the latest final block)    |
| `include` | query | string | No       | `transactions` — full transactions; `transfers` — the transfers of the block |

`block.height` is the slot on Solana, the masterchain `seqno` on TON and the validated ledger index on XRP Ledger.

#### Request

```bash
curl -s "https://api-unified.crypto-chief.com/v1/blocks/SOLANA_MAINNET/finalized" \
  -H "X-API-Key: $CC_API_KEY"
```

#### Response

```json
{
  "network": "SOLANA_MAINNET",
  "height": "304512890",
  "hash": "9mPq4WzR7sKt2VbNcX8hJ5eLdY3fGa6uTnBk1oQrHwE2",
  "parent_hash": "6Ty3HcQw8rNpZ5kV2mJbXd7sLg4eFa9uWnRk1oPqEt3B",
  "timestamp": "2026-11-29T09:59:55.000Z",
  "stage": "final",
  "confirmations": "32",
  "finality": { "basis": "finalized", "economic": true },
  "transaction_count": 1842
}
```

| Field                                        | Type           | Description                                                                                                       |
| -------------------------------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------- |
| `network`                                    | string         | Network code                                                                                                      |
| `height`, `hash`, `parent_hash`, `timestamp` |                | The block. On Solana, `parent_hash` is the previous produced block, whose slot can be lower than `height − 1`     |
| `stage`, `confirmations`, `finality`         |                | [Confirmations and Finality](https://docs-unified.crypto-chief.com/getting-started/confirmations-and-finality.md) |
| `transaction_count`                          | integer        | Transactions in the block                                                                                         |
| `transactions`                               | Transaction\[] | With `include=transactions`                                                                                       |
| `transfers`                                  | Transfer\[]    | With `include=transfers`                                                                                          |

A block the network does not have is `404 NOT_FOUND`. Ask for `finalized` to learn up to which height your data is final; on TRON, which has no `final` stage, use `latest` and count confirmations.
