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:
Stake NEAR via Blockdaemon API
Open Recipe
Reference
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 25 days ago