The Blockdaemon Staking API is a platform that allows developers to interact with blockchain networks and perform various staking-related operations in a single, unified interface. These include provisioning validators and delegating and undelegating tokens. The Staking API uses smart contracts and batching to reduce manual effort.
Follow the steps below to get started with the Staking API.
Step 1. Sign Up for an API Key
To use the Blockdaemon Staking API, you need to sign up for an API key. To do this, contact Blocdaemon sales to register for a staking account.
Once you have an account, you can access your API key from your Blockdaemon dashboard.
Need a Staking API key?
Register for an API key and start staking today!
Step 2. Get Familiar With API Endpoints
The Blockdaemon Staking API provides a variety of endpoints for different types of interactions with blockchain networks.
You can learn more about the API and find a full list of endpoints in the Staking API Documentation. Endpoints are used to interact with the blockchain network, such as sending transactions or retrieving data.
Step 3. Test the API
You can test the Staking API by sending a simple API request to the endpoint of your choice. For example, you can send a GET request to get withdrawal intents. The API will return the requested data in JSON format.
Option 1: View Details of an Endpoint in the API Reference Docs
View how GET Withdrawal Intents works in the API reference docs. Note that you can't run the Staking endpoints directly in the reference docs but can view its details.
Option 2: Use Your Preferred API Platform
Alternatively, you can use an API platform such as Postman to test the API.
Use the following endpoint to get withdrawal intents for Solana by specifying the network.
Step 4. Integrate the API Into Your Application
Once you have tested the API and are familiar with its endpoints, you can start integrating it into your application for a rapid and simple staking solution.