liquidstaking

Request Withdrawal

Submit a request to withdraw a specified amount of staked tokens. This endpoint processes withdrawal requests by requiring parameters such as the withdrawal amount and owner address, and supports configurable gas settings to ensure a smooth and cost-effective transaction.

💡 Compute Unit Value: 25 (Fixed)

post/defi/v1/liquidstaking/requestwithdrawal

Request

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

Request body

liquidStakingId'1' | '11155111' | '200' | '201' | '2' | '56' | '97' | '137' | '3' | '17000' | '43114' | '900'

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.

amountstring required

Number of tokens, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: 1 WETH (18 decimals) = "1000000000000000000"; 1 USDC (6 decimals) = "1000000".

ownerAddressstring required

Public address of the owner.

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.

tokenstring required

The name of the staked token to withdraw.

Example request

{
  "liquidStakingId": "1",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "amount": "1000000000000000000",
  "ownerAddress": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "gas": "100000",
  "gasPriority": "low",
  "enableFee": false,
  "token": "sTETH"
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
    "to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
    "data": "0xd66810420000000000000000000000000000000000000000000000000000000000000040000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000f4240",
    "gas": "40000000",
    "value": "0",
    "referenceId": "d3a79bcfd6ce4cdea13dfed88975ced7"
  }
}

Changes

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