---
title: "Get sortition by consensus hash"
method: GET
path: "/v3/sortitions/consensus/{consensus_hash}"
tags: ["Blocks"]
---

# Get sortition by consensus hash

`GET /v3/sortitions/consensus/{consensus_hash}`

Get sortition information for a specific consensus hash.
Returns a single-element array with the matching sortition.

## Path parameters

- `consensus_hash` string, required

## Response `200`

Sortition information for the consensus hash

- Sortitions — unresolved $ref

## Other responses

- `400` — Bad request
- `404` — Not found
- `500` — Internal Server Error

## Changes

- **2026-01-28** `30468ca2533f` — 1 warning
  - changed the pattern of the `path` request parameter `consensus_hash` from `^(0x)?[0-9a-f]{40}$` to `^[0-9a-f]{40}$`
- **2026-01-14** `f7f733b4a1fc` — 1 warning
  - changed the pattern of the `path` request parameter `consensus_hash` from `^[0-9a-f]{40}$` to `^(0x)?[0-9a-f]{40}$`
- **2026-01-14** `eb2153a4a3ad` — 1 warning
  - changed the pattern of the `path` request parameter `consensus_hash` from `^(0x)?[0-9a-f]{40}$` to `^[0-9a-f]{40}$`
- **2026-01-02** `96224b968a3e` — 1 warning
  - changed the pattern of the `path` request parameter `consensus_hash` from `^[0-9a-f]{40}$` to `^(0x)?[0-9a-f]{40}$`
- **2025-12-18** `97e7080a8130` — 1 warning
  - changed the pattern of the `path` request parameter `consensus_hash` from `^(0x)?[0-9a-f]{40}$` to `^[0-9a-f]{40}$`

[Full history](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api/changes/v3/sortitions/consensus/:consensus_hash/get.md)

---

[API](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api.md) · [All operations](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacks-network/stacks-3-0-rpc-api/revisions/bfe6e0b30f62/schema)
