yieldaggregator
Remove Liquidity
Withdraws tokens from a yield aggregator market, supporting advanced options like dual-token removal and slippage control. The response includes chain details, addresses, gas usage, and a unique reference ID for transaction tracking.
💡 Compute Unit Value: 120 (Fixed)
post/defi/v1/yieldaggregator/removeliquidity
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/yieldaggregator/removeliquidity
- AuthAPI key in header X-API-Key
Request body
Example request
{
"yieldAggregatorId": "5200",
"marketAddress": "0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce",
"tokenOut": "0x4db99b79361f98865230f5702de024c69f629fec",
"amountIn": "1000000000000000000",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"isDual": false,
"slippage": "10",
"enableAggregator": false,
"gas": "100000",
"gasPriority": "low",
"enableFee": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
"to": "0x888888888889758F76e7103c6CbF23ABbF58F946",
"value": "0",
"gas": "1000000",
"data": "0xb7d75b8b000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000b451a36c8b6b2eac77ad0737ba732818143a0e250000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000001a3314a2f53c7a6f0000000000000000000000000000000000000000000000010bfcf818602b1a92",
"estimationCheck": "Returned error: execution reverted: ERC20: insufficient allowance",
"referenceId": "a2b80241f98544579531de6190c45729"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.