NEAR Reward Withdrawals
Overview
There are 3 steps:
- Unstake the NEAR rewards (takes 2-3 days to complete)
- Withdraw the NEAR rewards
- Transfer the NEAR rewards to a business controlled account
Commands
Unstake
All commands are run from the NEAR host that you want to withdraw from.
First become neard user:
su neard
Then run this command to unstake the rewards:
REMEMBER TO REPLACE THE VALIDATOR NAME AND ACCOUNT ID WITH THE CORRECT VALUES FOR THE VALIDATOR.
near call "bitwise_1.poolv1.near" unstake_all --accountId "bitwise_1.near" --gas=300000000000000
This will take 2 to 3 days to complete.
Withdraw and transfer
First become neard user:
su neard
Then withdraw the rewards:
REMEMBER TO REPLACE THE VALIDATOR NAME AND ACCOUNT ID WITH THE CORRECT VALUES FOR THE VALIDATOR.
near call "bitwise_1.poolv1.near" withdraw_all --accountId "bitwise_1.near" --gas=300000000000000
You can check that the rewards have been withdrawn by running:
near state bitwise_1.near
Then transfer the rewards from the validator account to a business controlled account:
REMEMBER TO UPDATE THE FROM ACCOUNT ID TO BE THE VALIDATOR YOU WANT TO WITHDRAW FROM AND THE TO ACCOUNT ID TO BE THE ACCOUNT YOU WANT TO TRANSFER THE REWARDS TO.
near send-near "bitwise_1.near" "123456ReplaceMeWithAccountID" '1'
E.g. a business account we've used in the past is: 7c817f6ff3f605fef85fc4bed4813fbedb47e768da0ad36dc587459d44f6657c