liquidstaking

Claim

Process the claiming of accrued staking rewards. This endpoint allows you to collect earned rewards by specifying token amounts and adjusting gas parameters for optimal transaction speed and cost efficiency across different liquid staking protocols.

💡 Compute Unit Value: 35 (Fixed)

post/defi/v1/liquidstaking/claim

Request

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

Request body

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

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.

requestIdstring required

The token ID of the NFT, minted upon request, required to claim the rewards.

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.

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

The name of the staked token to claim rewards for.

Example request

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

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0xe55A8cFF86aBf88bfD89C81C287f14848bcf8542",
    "to": "0xe6d8d8aC54461b1C5eD15740EEe322043F696C08",
    "value": "0",
    "data": "0x8697d2c200000000000000000000000000000000000000000000000558ccb2cc7eb56b24000000000000000000000000000000000000000000000000000000006645dc67000000000000000000000000000000000000000000000000000000000000001b",
    "gas": "800000",
    "referenceId": "0e9a5ad94cb94402b162962b2bc125e2"
  }
}

Changes

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