Skip To Content

Blockdaemon Documentation

Post Stake Intent

The Staking Integration API endpoint in this page allows you to create your stake intents.

POST Create a New Stake Intent
Authentication Using API Key as an X-API-Key
Polygon API Usage Example
Polygon API User Journey


POST Create a New Stake Intent

https://svc.blockdaemon.com/boss/v1/{protocol}/{network}/stake-intents

Returns an unsigned transaction for delegation. Before using this endpoint, the user must sign and submit the unsigned transaction returned by POST Create a New Bootstrapping Intent.

Learn more: Polygon API Usage Example, Polygon API User Journey

Note: You need to authorize your request via an API key provided when signing up for a staking account.

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • polygon/prater

Supported Networks

Here is a full list of supported networks with their path parameters:

Protocol Network Path parameters
Polygon Mainnet polygon/mainnet
Polygon Prater polygon/prater

Example Query

To create a new stake intent in the Polygon Prater, use the following:

https://svc.blockdaemon.com/boss/v1/polygon/prater/stake-intents

Request Body

In the request body you need to specify the following:

  • amount: The amount of MATIC (in Wei) you want to stake
  • wallet_address: The user’s hex-encoded Ethereum account address

Example Request Body

{
      "amount": 1000000000000000000,
      "wallet_address": "0xAd1af794A5A5ccF57F8ABBD983ebC3138a131A36"
}

Example Response

The following is a typical response from POST Create a New Rewards Restake Intent:

{
    "customer_id": "3bcf0d33-cb47",
    "network": "prater",
    "polygon": {
        "amount": "1000000000000000000",
        "to": "0x75605B4F7C52e37b4f37121DC4529b08dFC76b39",
        "unsigned_transaction": "0x6ab150710000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000977",
        "wallet_address": "0xAd1af794A5A5ccF57F8ABBD983ebC3138a131A36"
    },
    "protocol": "polygon",
    "stake_intent_id": "f36cf7ef-18a1-4998-a41c-e6b83dbe11b2"
}

Authentication Using API Key as an X-API-Key

When signing up for a staking account, you are provided with an API key.

To authenticate a Staking API request, pass your API key in the X-API-Key header:

curl -X POST \
'https://svc.blockdaemon.com/boss/v1/polygon/prater/stake-intents' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": "1000000000000000000", "wallet_address": "0xAd1af794A5A5ccF57F8ABBD983ebC3138a131A36"}'

Polygon API Usage Example

In this section you will find a TypeScript example showing how to send a Polygon transaction using the Polygon Staking Integration API:


Polygon API User Journey

In this section you will find a typical user journey for Polygon Staking Integration API:

We don't support Internet Explorer

Please use Chrome, Safari, Firefox, or Edge to view this site.