---
title: "Blocks queries the blocks for the given user, if provided.
Otherwise, it queries all the stored blocks."
method: GET
path: "/desmos/relationships/v1/blocks"
tags: ["Query"]
---

# Blocks queries the blocks for the given user, if provided.
Otherwise, it queries all the stored blocks.

`GET /desmos/relationships/v1/blocks`

## Query parameters

- `subspace_id` string, uint64
- `blocker` string
- `blocked` string
- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.count_total` boolean
- `pagination.reverse` boolean

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/desmos-labs/apis/desmos-rest-and-grpc-gateway-docs.md) · [All operations](https://skmtc.net/desmos-labs/apis/desmos-rest-and-grpc-gateway-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desmos-labs/desmos-rest-and-grpc-gateway-docs/revisions/054f23b65d20/schema)
