# Get Reward

<mark style="color:green;">**To claim the staking rewards**</mark>, you would mint a get reward inscription, which represents the retrieval of staking rewards earned in the staking pool. Similar to previous operations, the get reward inscription is associated with the pool ID (PI) that identifies the specific staking pool. The exact amount of rewards can be obtained from the indexing service as a reference for the user. If the user specifies a higher amount than the actual rewards earned, the system will distribute the maximum available rewards to the user.

```json
{
  "P": "brc20-staking",
  "op": "getReward",
  "pn": "brst-aot",
  "pi": "",
  "amt": "10"
}
```

<table><thead><tr><th width="108.33333333333331">Key</th><th width="125">Required</th><th>Description</th></tr></thead><tbody><tr><td>p</td><td>yes</td><td>Protocol: <mark style="color:green;"><code>brc20-staking</code></mark></td></tr><tr><td>op</td><td>yes</td><td>Operation: <mark style="color:green;"><code>getReward</code></mark> event, specify type of event</td></tr><tr><td>pn</td><td>yes</td><td>Pool Name: staking pool name</td></tr><tr><td>pi</td><td>yes</td><td>Pool Identifier: the inscription number of the staking pool deployment</td></tr><tr><td>amt</td><td>yes</td><td>Amount: rewards amount user could claim from staking pool</td></tr></tbody></table>

{% hint style="info" %}
💡 The calculation of staking rewards follows the same rules as the Uniswap staking pool. Please refer to the code for more details:&#x20;
{% endhint %}

{% embed url="<https://github.com/Uniswap/liquidity-staker/blob/master/contracts/StakingRewards.sol>" %}
