# \[DEPRECATED] Get Estimated Rewards

{% hint style="warning" %}
This enpoint has been deprecated. Instead, use this SDK method to get token rewards: <https://github.com/clanker-devco/clanker-sdk/blob/main/examples/v4/getTokenRewards.ts>
{% endhint %}

```bash
GET https://www.clanker.world/api/tokens/estimate-rewards-by-pool-address
```

~~**Headers:**~~

```
x-api-key: your_api_key
```

~~**Query Parameters:**~~

| Parameter     | Type   | Description                           |
| ------------- | ------ | ------------------------------------- |
| `poolAddress` | string | Address of the token's liquidity pool |

~~**Example Request:**~~

```bash
curl -X GET \
  'https://www.clanker.world/api/tokens/estimate-rewards-by-pool-address?poolAddress=pool_address' \
  -H 'x-api-key: your_api_key'
```

### ~~Response Format~~

~~**Example Response:**~~

```json
{
  "userRewards": 4051.7574064199907
}
```

#### ~~Response Fields~~

<table><thead><tr><th width="180">Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>userRewards</code></td><td>number</td><td>Estimated rewards value in USD for the specified pool</td></tr></tbody></table>

### ~~Notes~~

* ~~The rewards value is returned as a floating-point number~~
* ~~Results are estimates and may vary from actual rewards~~
* ~~Values are calculated based on current prices of tokens in the pool~~


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clanker.gitbook.io/documentation/authenticated/deprecated-get-estimated-rewards.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
