Skip To Content

Blockdaemon Documentation

Post Withdrawal Intent

The Staking Integration API endpoint described on this page allows you to create a withdrawal intent:

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

POST Create a New Withdrawal Intent{protocol}/{network}/withdrawal-intents

Creates a new unstake intent to fully withdraw a stake. It should be used only after the unbonding period has passed. If no unbond nonce is specified, transactions for all available unstakes will be returned.

Nonces are returned by GET Get Deactivation Intents.

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 withdrawal intent in the Polygon Prater, use the following:

Request Body

In the request body you need to specify the following:

Example Request Body

    "unbond_nonces": [
    "wallet_address": "0x5c63B71F47dfA807aa6a8705e5cf134f4c3Afd8a"

Example Response

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

    "customer_id": "3bcf0d33-cb47",
    "network": "prater",
    "polygon": [
            "to": "0x75605B4F7C52e37b4f37121DC4529b08dFC76b39",
            "unbond_nonce": 1,
            "unsigned_transaction": "0xe97fddc20000000000000000000000000000000000000000000000000000000000000005",
            "wallet_address": "0x5c63B71F47dfA807aa6a8705e5cf134f4c3Afd8a"
            "to": "0x75605B4F7C52e37b4f37121DC4529b08dFC76b39",
            "unbond_nonce": 2,
            "unsigned_transaction": "0xe97fddc20000000000000000000000000000000000000000000000000000000000000007",
            "wallet_address": "0x5c63B71F47dfA807aa6a8705e5cf134f4c3Afd8a"
    "protocol": "polygon"

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 \
'' \
-H 'Content-Type: application/json' \
-d '{"wallet_address": "0x5c63B71F47dfA807aa6a8705e5cf134f4c3Afd8a", "unbond_nonces": [1, 2]}'

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.