Withdraw

Validator withdraw

Query the number of locked MAP

You can query how many MAP are locked by doing the following.

./marker getAccountTotalLockedGold --rpcaddr http://127.0.0.1:7445 --target 0x73bc690093b9dd0400c91886184a60cc127b2c33

INFO [08-02|16:50:22.331] === getAccountTotalLockedGold ===        admin=0x0000000000000000000000000000000000000000 target=0x73bC690093b9dD0400c91886184A60cC127b2c33
INFO [08-02|16:50:22.333] result                                   lockedGold=1,000,000,000,000,000,000,000,000

Unregister validator

This step is not required, but if your locked balance is less than 10000000 after unlocking, please unregister first. unregister operation can only be performed 60 days after registration as a validator, and unregister needs to wait for the last block of the current epoch to take effect.

./marker deregister --rpcaddr http://127.0.0.1:7445 --keystore /Users/alex/data/atlas-1/keystore/UTC--2022-06-14T05-46-17.312327000Z--73bc690093b9dd0400c91886184a60cc127b2c33

INFO [08-02|16:52:40.688] === deregisterValidator === 
INFO [08-02|16:52:40.701] TxInfo                                   func=sendContractTransaction TX data nonce =10  gasLimit =4,500,000  gasPrice =101,000,000,000  chainID =22776
INFO [08-02|16:52:40.702] Please waiting                           func=getResult                txHash =0xb904cae42c8e9d5481b0023b367a35a5be37802c1a9f7a9ff55835cd72044def
INFO [08-02|16:52:41.107] Transaction Success                      func=queryTx                 block Number=1211

Unlock MAP

This step is used to convert the state of your MAP from locked to unlocked

Query the number of unlocked MAP

Looking at the output, we can see that we now have two unlocked funds numbered 0 and 1. Next we will withdraw the fund numbered 1.

Withdraw MAP

This step will redeem the status of the reward from the unlocked state to the balance, but this step needs to be unlocked for 15 days before it can be executed.

Check balance

Now the redeemed MAP is in the account balance, let's verify it.

Voter withdraw

Query the validators that account has voted for.

Query your account's active votes for validator

Revokes active votes for validator

Query the total amount of non-voting locked MAP in your account.

Unlock MAP

This step is used to convert the state of your MAP from locked to unlocked

Query the number of unlocked MAP

Looking at the output, we can see that we now have a fund number 0 waiting to be redeemed, below we will redeem it

Withdraw MAP

This step will redeem the status of the reward from the unlocked state to the balance, but this step needs to be unlocked for 15 days before it can be executed.

Check balance

Now the redeemed MAP is in the account balance, let's verify it.

Last updated

Was this helpful?