7️⃣Exit

To initiate the exit process, 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.

{
  "P": "brc20-staking",
  "op": "exit",
  "pn": "brst-aot",
  "pi": "",
  "wa": "1000",
  "ra": "10"
}
Key
Required
Description

p

yes

Protocol: brc20-staking

op

yes

Operation: exit event, specify type of event

pn

yes

Pool Name: staking pool name

pi

yes

Pool Identifier: the inscription number of the staking pool deployment

wa

yes

Withdraw Amount: total amount user staked in staking pool

ra

yes

Rewards Amount: rewards amount user could claim from staking pool

Last updated