Staking API

On this page, you will find a TypeScript example showing how to send an AVAX transaction using the Avalanche Staking API. It includes functions to request an unsigned transaction from the Blockdaemon API, deserialize and sign it using the Avalanche SDK, and submit it to the Avalanche Fuji testnet.

Prerequisites

You’ll need the following before running the script:

  • A valid Avalanche Fuji delegator address
  • A validator node ID to stake to
  • A private key for your P-Chain wallet (starting with PrivateKey-)
  • Your Blockdaemon API key

Tutorial

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

👍

Reference

View the Avalanche - Staking API Endpoints here.


👋 Need Help?

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