> For the complete documentation index, see [llms.txt](https://docs.aqua.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aqua.network/developers/code-examples/claim-lp-rewards.md).

# Claim LP rewards

Liquidity in a [reward zone](/voting-and-rewards/aquarius-amm-rewards.md) pool accrues AQUA every second. Check what a position has accrued, then claim it.

This page continues from the client setup in [Deposit liquidity](/developers/code-examples/deposit-liquidity.md). For the raw router signature — `claim(user, tokens, pool_index)` — see [Aquarius Soroban Functions](https://github.com/AquariusDeFi/gitbook-docs/tree/master/developers/aquarius-soroban-functions.md).

### 1. Check the pending amount

Reading needs no signer — pass any address:

{% tabs %}
{% tab title="Python" %}

```python
pool = next(p for p in aqua.pools_for_pair(XLM, AQUA) if p.type == "volatile" and p.fee_bps == 30)

pending = pool.pending_rewards()   # the signer's accrual, in stroops of AQUA
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const pool = (await aqua.pools.forPair(XLM, AQUA)).find(p => p.type === "volatile" && p.feeBps === 30);

const pending = await pool.pendingRewards();   // the signer's accrual, in stroops of AQUA
```

{% endtab %}
{% endtabs %}

### 2. Claim

{% tabs %}
{% tab title="Python" %}

```python
result = pool.claim_rewards()

print(f"claimed: {result.amount} stroops of AQUA")
print(f"transaction: {result.tx_hash}")
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const result = await pool.claimRewards();

console.log(`claimed: ${result.amount} stroops of AQUA`);
console.log(`transaction: ${result.txHash}`);
```

{% endtab %}
{% endtabs %}

The claimed AQUA lands in the signer's account; the position itself is untouched and keeps accruing. A pool outside the reward zone accrues nothing — claiming there returns 0.

{% hint style="info" %}
Claiming also refreshes your [reward boost](/aqua-and-ice/ice-boosts-how-to-maximize-lp-rewards.md) — worth doing periodically while other providers move in and out of the pool.
{% endhint %}
