4️⃣Stake

To perform a staking operation, you would need to mint staking inscriptions that represent participation in the staking pool. The minting process is done by providing the pool ID (PI), which uniquely identifies the staking pool. However, it is important to ensure that the user's address holds a sufficient amount of staking tokens before initiating the staking process.

{
  "P": "brc-20 staking",
  "op": "stake",
  "pn": "brst-aot",
  "pi": "",
  "amt": "1000"
}
Key
Required
Description

p

yes

Protocol: brc20-staking

op

yes

Operation: stake 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: user stake amount

circle-info

💡In the BRC-20 protocol, a user's balance is divided into two types: available balance and transferable balance. The sum of the available balance and transferable balance equals the user's total balance. In the BRC-20 staking protocol, we introduce a new type called staked balance. The total balance of a user is the sum of the available balance, transferable balance, and staked balance. However, only the available balance is eligible for staking, and the staked balance and transferable balance cannot be further staked.

Last updated