The NEAR Protocol API enables you to completely outsoruce the management of your NEAR validators. while retaining full custody of your NEAR tokens.
In this section you will find a typical user journey for interacting with the NEAR Staking API:
Staking is initiated through the Post Stake Intent endpoint. The endpoint returns an unsigned transaction that must be signed and broadcasted to the network by the account providing the delegated funds.
2. Deactivating your Stake
Before the staked tokens can be withdrawn, they must first be deactivated. The Post Deactivation Intent endpoint return an unsigned transaction, which once signed and broadcasted starts the deactivation process. The process will complete in 2 or 3 NEAR epochs (24-48 hours).
3. Withdrawing Funds
Once the stake has been fully deactivated, a unsigned withdrawal transaction can be generated through the Post Withdrawal Intent endpoint.