> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Stake Rewards

> Read the rewards a stake has accrued so far

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Returns the rewards that have accrued on a specific stake up to right now. This is the amount that would be paid out if the customer unstaked immediately. Returns `"0"` if the stake has already been unstaked or doesn't exist.

### Query Parameters

<ParamField query="customer_ref" type="string" required>
  Your unique identifier for this customer
</ParamField>

<ParamField query="stake_index" type="integer" required>
  0-based index of the stake position
</ParamField>

### Response

<ResponseField name="rewards" type="string">
  Accrued reward tokens (decimal string)
</ResponseField>

```javascript theme={null}
const res = await fetch(
  "https://tokens.shakesco.com/stake-rewards?customer_ref=customer-123&stake_index=0",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { rewards } = await res.json();
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "rewards": "1.5" }
  ```
</ResponseExample>
