NEAR API Quickstart

Overview and setup for Blockdaemon NEAR Staking API.

The NEAR Staking API simplifies staking by eliminating the need for NEAR nodes. You simply need to sign the transactions, adding minimal dependencies to your technology stack. Our advanced bookkeeping and transaction lifecycle tracking enable your organization's various sub-teams to avoid conflicts when dealing with ongoing deactivation and withdrawal operations.

Supported Networks

The Blockdaemon Staking API supports the following NEAR networks:

  • Mainnet
  • Testnet

How to Use the NEAR Staking API

1. How to Stake

Staking funds with the Blockdaemon staking pool is achieved through the Post Stake Intent endpoint.

This endpoint returns an unsigned transaction that needs to be signed and broadcast to the network by the account responsible for the delegated funds.

2. How to Deactivate Your Stake

Before withdrawing staked tokens, they must undergo deactivation.

The Post Deactivation Intent endpoint returns an unsigned transaction. Once signed and broadcast, it triggers the deactivation process. The process is completed within 2 or 3 NEAR epochs (equivalent to 24-48 hours).

3. How to Withdraw Funds

Upon the full deactivation of the stake, an unsigned withdrawal transaction can be generated using the Post Withdrawal Intent endpoint.

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.