# pendingRewards()

### Function pendingRewards()

{% code title="StandardRewards.sol" %}

```javascript
 function pendingRewards(address provider, uint256[] calldata ids) external view uniqueArray(ids) returns (uint256)
```

{% endcode %}

This function is used to check the pending rewards for an address.

{% hint style="info" %}
The indicated rewards programs must have the same token as their reward.&#x20;
{% endhint %}

### Function Arguments

| Name     | Type       | Description                              |
| -------- | ---------- | ---------------------------------------- |
| provider | address    | The address to check.                    |
| ids      | uint256\[] | The list of reward program IDs to check. |

### Return Variables

This function gets the number of pending rewards for an address for each of the indicated rewards programs.

| Variable Type | Returns                        |
| ------------- | ------------------------------ |
| uint256       | The number of pending rewards. |

Example response:

`uint256 :  4033607631980985925`


---

# 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://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/pendingrewards.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.
