liquidstaking

Undelegate

Process the undelegation of staked assets from an operator contract, effectively reversing the delegation action. This endpoint enables you to reclaim your staked tokens with configurable gas settings to ensure a smooth transition.

💡 Compute Unit Value: 5 (Fixed)

post/defi/v1/liquidstaking/undelegate

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/liquidstaking/undelegate
  • Auth
    API key in header X-API-Key

Request body

liquidStakingId'3' | '17000'

The unique ID to specify the liquid staking protocol for routing staking-related queries or transactions.

fromstring required

Blockchain address of the sender. For EVM chains, use a checksummed hex address (e.g., 0xABCDEF...). This address must hold sufficient balance and will sign the transaction.

gasstring

Maximum number of gas units to allocate for the transaction, as an integer string (e.g., '200000'). If omitted, gas is estimated automatically. Note: this is gas units, not wei or gwei.

gasPrioritystring

Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.

enableFeeboolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

Example request

{
  "liquidStakingId": "3",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "gas": "100000",
  "gasPriority": "low",
  "enableFee": false
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A",
    "data": "0xda8be864000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402",
    "gas": "131514",
    "value": "0",
    "estimationCheck": true,
    "referenceId": "e05489bdfda945f096746d4634c7a283"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.