yieldaggregator
Add Liquidity
Constructs a transaction payload for adding liquidity to a specified market. The payload includes chain, address, gas, and function data, enabling users to deposit tokens and expand yield opportunities.
💡 Compute Unit Value: 95 (Fixed)
post/defi/v1/yieldaggregator/addliquidity
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/yieldaggregator/addliquidity
- AuthAPI key in header X-API-Key
Request body
Example request
{
"yieldAggregatorId": "5200",
"marketAddress": "0xcdd26eb5eb2ce0f203a84553853667ae69ca29ce",
"tokenIn": "0x4db99b79361f98865230f5702de024c69f629fec",
"amount": "1000000000000000000",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"amountPtIn": "10000",
"slippage": "10",
"zeroPriceImpact": 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": "0x97ee279e000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000b451a36c8b6b2eac77ad0737ba732818143a0e250000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000c741",
"estimationCheck": "Returned error: execution reverted: ERC20: insufficient allowance",
"referenceId": "410bcb32a855442caa186a8a7a599d1e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.