Examples
Most of it is referred from domo's gitbook.
Let's say you want to inscribe your own token (assume ABCD) with staking rewards. One can perform given ops
Deploy a token
You can deploy your token using following code
$abcd might be already inscribed or fully minted. Example for demonstration purposes only.
Now, you will own whole of supply (BRC-20 standard proposition) until people mint it. There is no whitelist/limits per wallet in current scheme of BRC-20 things. However, there is limit per inscription.
Yield is a nested json which shows first 6000 blocks yield (per token per block), 8000 blocks yield etc.
Mint a token
Minter populates mint function with required information
Inscribe the function to your own ordinal enabled wallet taproot address. Make sure not using inscription service that mints to itself first.
You now have 1 "bYLD"
Transfer 500 "ordi" to Satoshi's wallet
Satoshi wallet just an example. Can send to any ordinal compatible taproot address.
Inscribe the function to your own ordinal enabled wallets taproot address that holds the balance. Make sure not using inscription service that mints to itself first. Some ordinal wallets generate a different address each time, make sure to send to the address that holds the balance.
Send the inscription from your wallet to Satoshi's ordinal enabled wallets taproot address (if he had one).
Satoshi now has 500 "bYLD"
Sender
500
0
Satoshi
0
500
Staking
Staking is done by incribing a transfer inscription & depositing tokens in the staking wallet address. To stake 100 $bYLD tokens, we will perform transfer as:
Transfer the tokens to staking wallet & block time is captured upon transfer to calculate the yield
Unstake
Let us assume we had staked 1000 $bYLD tokens for 100 blocks. The balance shown on staking dashboard will be 1000 * (1+0.0007*100) = 1070 tokens.
We need to inscribe an untransfer op and send it to the staking address. Below is an example of such un-transfer inscription:
Untransfer op is defined only for staking protocol, its not a part of original BRC20 design. Please ensure you correctly perform this action.
Txn is the original transaction inscription id for staking the tokens.
If you inscribe this from a wallet multiple times, only first one will be catered (txn is unique identifier per stake set).
If you inscribe this from a wallet which has never STAKED OR txn is invalid, then this inscription will be a waste.
Last updated