Contract source codeYou can review the Staking pool smart contract source code in this GitHub repository.
Delegate NEAR tokens
Before delegating, you need to choose a validator (a node that participates in staking). Check NearBlocks, Pikespeak or Near Staking, and look for validators with a good track record, uptime, and reasonable commission rates.List validators using CLI
List validators using CLI
If you prefer, you can get the list of current validators by using the
near-validator CLI:Stake Tokens
- Staking CLI
- Function Call
Lantstool
Staked Balance
To check your staked balance on the<my_validator> pool for the <user-account.near> account, run the following command:
- Staking CLI
- Function Call
Lantstool
Staking pool balances
Staking pool balances
You can view additional information and balances from the staking pool using the following CLI commands:
Total staked balance of the entire pool
- 🖥️ CLI
Lantstool
Owner of the staking pool
- 🖥️ CLI
Lantstool
Current reward fee
- 🖥️ CLI
Lantstool
Owner’s balance
- 🖥️ CLI
Lantstool
Staking key
- 🖥️ CLI
Lantstool
Withdrawing Staked Tokens
To withdraw your staked tokens, you will first need to “un-delegate” them from the validator. Your tokens will enter a 4 epoch (~24 hours) unbonding period before they can be withdrawn.Unstake Tokens
- Staking CLI
- Function Call
Lantstool
Use the
unstake-all command to to unstake all tokens at once:Query Unstaked Balance
- Staking CLI
- Function Call
Lantstool
Withdraw Tokens
Once the unbonding period has passed, you can withdraw your unstaked tokens:- Staking CLI
- Function Call
Lantstool
If you want to withdraw all available tokens, you can use the
withdraw-all command:Tools and Resources
- Supported wallets for staking and managing your tokens:
- To explore validators and staking pools: