> For the complete documentation index, see [llms.txt](https://docs.bancor.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bancor.network/developer-guides/write-functions/rewards/claimrewards.md).

# claimRewards()

### Function claimRewards()

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

```solidity
function claimRewards(uint256[] calldata ids) external uniqueArray(ids) nonReentrant returns (uint256)
```

{% endcode %}

This function is used to claim pending rewards from one or more standard rewards programs.&#x20;

The function accepts a list of reward program IDs as arguments, and returns the number of rewards claimed.&#x20;

### Function Arguments

| Name | Type       | Description                             |
| ---- | ---------- | --------------------------------------- |
| ids  | uint256\[] | This is an array of reward program IDs. |

### Return Variables

| Variable Type | Returns                        |
| ------------- | ------------------------------ |
| uint256       | The amount of rewards claimed. |
