# Rewards: Stake & Claim

This section explains how to identify the number of pending rewards, and how to stake or claim them.

### Pending Rewards

How to identify the number of rewards you are eligible for and can claim?

* Visit the *`StandardRewards`* contract [on etherscan](https://etherscan.io/address/0xb0B958398ABB0b5DB4ce4d7598Fb868f5A00f372#readProxyContract)
* Execute the `pendingRewards` function (this is a Read function)

![](https://273705617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9gDtGR2KNhur3c7qIJR%2Fuploads%2FpvAu9oNFcZOQ8yRvnG6Y%2Fimage.png?alt=media\&token=9518522b-a1d8-458f-aa03-693c3817cb00)

`Input variable`

| Name     | Type             | Description                                                                         |
| -------- | ---------------- | ----------------------------------------------------------------------------------- |
| provider | address          | Your wallet address                                                                 |
| ids      | array of uint256 | 1 or more reward program IDs (must be IDs for programs with the same rewards token) |

`Output response`

| Name         | Type    | Description                                        |
| ------------ | ------- | -------------------------------------------------- |
| rewardAmount | uint256 | The current available claimable rewards in *`WEI`* |

### Staking Rewards

This section explains how to stake the rewards into a bancor pool

* Visit the *`StandardRewards`* contract [on etherscan](https://etherscan.io/address/0xb0B958398ABB0b5DB4ce4d7598Fb868f5A00f372#writeProxyContract)
* Execute the `stakeRewards` function (this is a Write function)

![](https://273705617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9gDtGR2KNhur3c7qIJR%2Fuploads%2FSNZfT3ptsPuOKeOuMUar%2Fimage.png?alt=media\&token=36ffd4c5-086d-4d32-a768-2109f5583ea3)

`Input variable`

| Name | Type             | Description                                                                         |
| ---- | ---------------- | ----------------------------------------------------------------------------------- |
| ids  | array of uint256 | 1 or more reward program IDs (must be IDs for programs with the same rewards token) |

Once executed, **ALL** pending rewards will be staked into the relevant pool, and you will receive the bnTokens to represent your share in the pool.

If the pool has any "standard rewards" which require manual opt-in, you would need to join the relevant rewards plan.

### Claiming Rewards

This section explains how to claim the rewards into your wallet

* Visit the *`StandardRewards`* contract [on etherscan](https://etherscan.io/address/0xb0B958398ABB0b5DB4ce4d7598Fb868f5A00f372#writeProxyContract)
* Execute the `claimRewards` function (this is a Write function)

![](https://273705617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9gDtGR2KNhur3c7qIJR%2Fuploads%2FA4V4nUW2hyGlq4rEJ3tx%2Fimage.png?alt=media\&token=de9f4754-015d-4228-a465-82fe1a83c725)

`Input variable`

| Name | Type             | Description                                                                         |
| ---- | ---------------- | ----------------------------------------------------------------------------------- |
| ids  | array of uint256 | 1 or more reward program IDs (must be IDs for programs with the same rewards token) |

Once executed, **ALL** pending rewards will be claimed into your wallet.
