---
updatedAt: 2026-05-13T08:32:51.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 a BNB transaction using the **BNB Staking API**. The script includes functions for staking (delegating), deactivating (undelegating), and restaking to another validator.

## Prerequisites

You’ll need the following before running the script:

* A Binance Chain testnet wallet with BNB
* Your Blockdaemon API key

## Tutorial

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

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

> 👍 Reference
>
> View the Binance - Staking API Endpoints [here](https://docs.blockdaemon.com/reference/bnb-api-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.