# Exit

<mark style="color:green;">**To initiate the exit process**</mark>, you would mint an exit inscription. This operation combines the functionality of both the withdraw and getReward operations. It represents the withdrawal of the staked tokens and the retrieval of the earned rewards from the staking pool in a single step. By minting the exit inscription, you can efficiently execute the withdrawal and rewards claim process simultaneously.

```json
{
  "P": "brc20-staking",
  "op": "exit",
  "pn": "brst-aot",
  "pi": "",
  "wa": "1000",
  "ra": "10"
}
```

<table><thead><tr><th width="121.33333333333331">Key</th><th width="113">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>exit</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>wa</td><td>yes</td><td>Withdraw Amount: total amount user staked in staking pool</td></tr><tr><td>ra</td><td>yes</td><td>Rewards Amount: rewards amount user could claim from staking pool</td></tr></tbody></table>
