liquidstaking

Restake

Execute a restaking transaction—specifically on EigenLayer—that allows you to reinvest your liquid staking tokens. This endpoint supports token-specific parameters and configurable gas settings, helping you optimize the reinvestment process.

💡 Compute Unit Value: 30 (Fixed)

post/defi/v1/liquidstaking/restake

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/liquidstaking/restake
  • 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.

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".

tokenstring required

Staked token name for restaking.

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",
  "amount": "1000000000000000000",
  "token": "sTETH",
  "gas": "100000",
  "gasPriority": "low",
  "enableFee": false
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0x858646372CC42E1A627fcE94aa7A7033e7CF075A",
    "data": "0xe7a050aa00000000000000000000000093c4b944d05dfe6df7645a86cd2206016c51564d000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000000000000000000000000005af3107a4000",
    "value": "0",
    "gas": "171219",
    "gasPrice": "2",
    "estimationCheck": true,
    "referenceId": "6ced624eb4bf46438063062d4a4df12d"
  }
}

Changes

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