Unstaking
Intro
TODO
Method 1 - via user interface
Method 2 - programmatic way using SDK
Let's assume that we have this:
Your address -
3JAeBnsMedzxjCMNWQYcAXtwGVE9A5DBQyXgWBujtL9R
Pool you staked on -
9GQ46rqY238rk2neSwgidap9ww5zbAN4dyqyC7j5ZnBK
Let's assume that we want to do the following:
Unstake 30 coins - this will return to our balance
70 coins remain in the pool - you will continue to receive rewards from the validator
1. Call system smart contract to unstake
Output:
2. Check the unstaking tx status
Go to explorer and try to find your transaction
Transaction finished with Success
π’ status
3. Wait untill the next epoches
There is also a delay for the unstaking procedure. Since the transaction was in epoch 61
Then you will receive the coins in epoch 63
4. Check that you have less coins in pool and receive your coins back
We waited for some time and now the epoch is 64 (even more than 63).
Let's try to go to the pool page and see the list of stakers now:
Now in pool you have 70 coins instead of 100
And if you visit the page of your account you will see that 30 coins was sent to your address back
Calculation:
As you can see, everything is correct β
Last updated