---
title: "QueryStakings returns all queued stakings by a farmer."
method: GET
path: "/crescent/farming/v1beta1/queued_stakings/{farmer}"
tags: ["Query"]
---

# QueryStakings returns all queued stakings by a farmer.

`GET /crescent/farming/v1beta1/queued_stakings/{farmer}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/docs/crescent/farming/v1beta1/queued_stakings/:farmer/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all queued stakings that corresponds to the farmer

## Path parameters

- `farmer` string, required

## Query parameters

- `staking_coin_denom` 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.

- object: QueryQueuedStakingsResponse is the response type for the Query/QueuedStakings RPC method.
  - `queued_stakings` object[]
    - `staking_coin_denom` string
    - `amount` string
    - `end_time` string, date-time
  - `pagination` object: PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
    - `next_key` string, byte
    - `total` string, uint64

## Other responses

- `400`: Bad Request
- `default`: An unexpected error response

## Changes

- **2022-05-20** `df5a87c0b094`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/changes/crescent/farming/v1beta1/queued_stakings/:farmer/get.md)

---

[API](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/revisions/ddf5133cea9d?raw)
