# Withdraw

<mark style="color:green;">**To perform an unstaking operation**</mark>, you would need to mint withdraw inscriptions that represent the removal of staked tokens from the staking pool. Similar to the staking process, the withdraw inscriptions are associated with the pool ID (PI) that identifies the specific staking pool. It is important to note that for an unstaking operation, the user should have a sufficient staked balance in the specified staking pool. If the unstaked balance exceeds the available staked balance, the system will automatically unstake the maximum amount that was originally staked on behalf of the user.

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

<table><thead><tr><th width="118.33333333333331">Key</th><th width="121">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>withdraw</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: user withdraw amount</td></tr></tbody></table>

{% hint style="info" %}
💡 If a user mints a new transfer inscription for their staking token and the minted transfer amount exceeds the available balance, a portion of the staked balance will be converted into transferable balance. This conversion occurs as a result of the user performing an unstaking operation.
{% endhint %}
