# UTXO ids by block height

`GET /blocks/byHeight` · Lithos client API · Blocks

Source: https://lithosprotocol.org/docs/api/get-blocks-by-height

Get UTXO ids for usable, canonically committed Lithos rollups whose mined-block height is in the requested range. The list is empty while canonical synchronization is unavailable.

## Parameters

| Name | In | Type | Required | Description |

|---|---|---|---|---|

| `fromHeight` | query | integer · int32 | no | Min height (start of the range) to look for Lithos blocks |

| `toHeight` | query | integer · int32 | no | Max height of the range (exclusive) |

## Responses

### 200: Array of UTXO ids

`string[]`

### default: Error

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

## Example request

```bash
curl -X GET "http://localhost:9000/blocks/byHeight"
```

## Example response

```json
[
  "88c297f99da7172f6aa20efbead69aa40e2b7734a1873d66ca1db6b19d214db6"
]
```
