yieldaggregator
Mint
Converts deposited assets into yield-bearing tokens (or share tokens) within a yield aggregator protocol. The response includes transaction details (chain ID, addresses, gas, reference ID) for secure tracking.
💡 Compute Unit Value: 30 (Fixed)
post/defi/v1/yieldaggregator/mint
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/yieldaggregator/mint
- AuthAPI key in header X-API-Key
Request body
Example request
{
"yieldAggregatorId": "5200",
"tokenIn": "0x4db99b79361f98865230f5702de024c69f629fec",
"amountIn": "1000000000000000000",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"gasPriority": "low",
"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": "0x1a8631b2000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000004a8036efa1307f1ca82d932c0895faa18db0c9ee0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000083d6c7aab6360000",
"estimationCheck": "Returned error: execution reverted: ERC20: insufficient allowance",
"referenceId": "3173e53c1af44cda8f70d4990858d2c6"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.