6️⃣Get Reward

To claim the staking rewards, 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.

{
  "P": "brc20-staking",
  "op": "getReward",
  "pn": "brst-aot",
  "pi": "",
  "amt": "10"
}
Key
Required
Description

p

yes

Protocol: brc20-staking

op

yes

Operation: getReward event, specify type of event

pn

yes

Pool Name: staking pool name

pi

yes

Pool Identifier: the inscription number of the staking pool deployment

amt

yes

Amount: rewards amount user could claim from staking pool

circle-info

💡 The calculation of staking rewards follows the same rules as the Uniswap staking pool. Please refer to the code for more details:

Last updated