---
title: "Rewards returns rewards for a farmer"
method: GET
path: "/crescent/farming/v1beta1/rewards/{farmer}"
tags: ["Query"]
---

# Rewards returns rewards for a farmer

`GET /crescent/farming/v1beta1/rewards/{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/rewards/:farmer/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all rewards coins 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: QueryRewardsResponse is the response type for the Query/Rewards RPC method.
  - `rewards` object[]
    - `staking_coin_denom` string
    - `rewards` object[]
      - `denom` string
      - `amount` string
  - `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`: 5 info
  - added the new optional `query` request parameter `pagination.count_total`
  - added the new optional `query` request parameter `pagination.key`
  - added the new optional `query` request parameter `pagination.limit`
  - added the new optional `query` request parameter `pagination.offset`
  - …1 more
- **2022-03-17** `050a36bde231`: 1 info
  - endpoint added
- **2022-01-24** `63a98ab49fe1`: 1 breaking
  - api path removed without deprecation
- **2022-01-24** `9df0a4d8de8e`: 1 info
  - endpoint added
- **2022-01-24** `c74d7f3d449c`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/changes/crescent/farming/v1beta1/rewards/: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)
