---
title: GetStateRootsRequest
description: GetStateRootsRequest retrieves up to 257 state roots ending at a
  specified slot.
source_url:
  html: https://thru.org/docs/api-ref/grpc/messages/thru/services/v1/get-state-roots-request/
  md: https://thru.org/docs/api-ref/grpc/messages/thru/services/v1/get-state-roots-request.md
---

# GetStateRootsRequest

GetStateRootsRequest retrieves up to 257 state roots ending at a specified slot. Used for transaction replay to verify state proofs against historical roots. Returns state roots in ascending slot order, from (slot - 256) to slot (inclusive).

**Package:** `thru.services.v1`

## Fields

| Field | Type | # | Description |
| - | - | - | - |
| `slot` | `uint64` | 1 · optional | The slot to retrieve state roots up to (inclusive). Returns up to 257 state roots ending at this slot. If not specified, returns state roots ending at the latest available slot. |
