yieldaggregator
Redeem
Converts yield-bearing tokens back into their underlying asset within a yield aggregator protocol. The response includes transaction metadata (chain ID, addresses, gas) and a unique reference ID for tracking.
💡 Compute Unit Value: 40 (Fixed)
post/defi/v1/yieldaggregator/redeem
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/yieldaggregator/redeem
- AuthAPI key in header X-API-Key
Request body
Example request
{
"yieldAggregatorId": "5200",
"tokenOut": "0x4db99b79361f98865230f5702de024c69f629fec",
"amountIn": "1000000000000000000",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"slippage": "10",
"ytAddress": "0x4a8036efa1307f1ca82d932c0895faa18db0c9ee",
"syAddress": "0x4a8036efa1307f1ca82d932c0895faa18db0c9ee",
"enableFee": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
"to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
"value": "0",
"gas": "1000000",
"data": "0x339748cb000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000004a8036efa1307f1ca82d932c0895faa18db0c9ee0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000083d6c7aab6360000",
"estimationCheck": "Returned error: execution reverted: ERC20: insufficient allowance",
"referenceId": "d0de8589aa8f4306b3a5b3c2044e28f1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.