---
updatedAt: 2026-06-09T12:37:36.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Staking API

On this page, you will find a TypeScript example showing how to send an NEAR transaction using the **Near Staking API**. It performs the staking request, signing the transaction with your NEAR private key, and submitting it to the testnet.

## Prerequisites

You’ll need the following before running the script:

* A NEAR wallet address (e.g., example.testnet)
* A validator pool ID (e.g., nodeasy.pool.f863973.m0)
* Your account has enough balance to cover the stake + gas
* The wallet’s public key
* The wallet’s private key (exported from the NEAR wallet and set as `PRIVATE_KEY`)
* Your Blockdaemon API key

## Tutorial

*⬇️ Follow the step-by-step guide in the recipe below:*

<TutorialTile
  backgroundColor="#9c63dc"
  emoji="💡"
  id="6867e164a8dc7f00697bc13b"
  link="https://docs.blockdaemon.com/v1.0/recipes/stake-near-via-blockdaemon-api"
  slug="stake-near-via-blockdaemon-api"
  title="Stake NEAR via Blockdaemon API"
/>

> 👍 Reference
>
> * View the Near - Staking API Endpoints [here](https://docs.blockdaemon.com/reference/near-api-overview).
> * View the Near - Staking Reporting API Endpoints [here](https://docs.blockdaemon.com/reference/near-api-v2-overview).

<br />

## 👋 Need Help?

Contact us through [email](mailto:support@blockdaemon.com) or our [support page](https://www.blockdaemon.com/support) for any issues, bugs, or assistance you may need.