dex
Remove Liquidity
Facilitates the withdrawal of liquidity from cross-chain bridges with customizable gas settings and amount specifications.
💡 Compute Unit Value: 115 (Fixed)
post/defi/v1/dex/removeliquidity
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/removeliquidity
- AuthAPI key in header X-API-Key
Request body
Example request
{
"dexId": "1000",
"tokenA": "0x514910771AF9Ca656af840dff83E8264EcF986CA",
"tokenB": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"liquidity": "1000000000000000000",
"amountAMin": "0",
"amountBMin": "0",
"deadline": "1707313948",
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"gasPriority": "low",
"slippage": "10",
"enableFee": false,
"tokenId": "3238",
"amountAMax": "1000000000000000000",
"amountBMax": "1000000000000000000",
"recipient": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"amountADesired": "1000000000000000000",
"amountBDesired": "1000000000000000000",
"path": [
"0x514910771AF9Ca656af840dff83E8264EcF986CA",
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
],
"amountIn": "1000000000000000000",
"amountOut": "1000000000000000000",
"toInternalBalance": false,
"binStep": "20",
"ids": "8375816,8375817",
"amounts": "10000",
"positionNFT": "45z3G8PxyTuFa9tbr9QMmscGVHvZir4vQK1U5LRKeSQd",
"poolAddress": "0xfad57d2039c21811c8f2b5d5b65308aa99d31559",
"amountOutMin": "0",
"poolFees": "3000"
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "400000",
"data": "0xbaa2abde000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000566f4b5624f4230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634e5192",
"estimationCheck": true,
"referenceId": "838c56cd8ee9402b96cc1e9939fa1e75"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.