yieldaggregator
Deposit Vault
Initiates token deposits into yield-generating vaults with configurable gas parameters and flexible identification methods (via vaultAddress or tokenAddress and vaultNumber). The endpoint processes the deposit transaction on the designated blockchain and returns key details—such as chain ID, addresses, transaction value, gas usage, and a unique reference ID—essential for managing multiple vaults efficiently.
💡 Compute Unit Value: 25 (Fixed)
post/defi/v1/yieldaggregator/depositvault
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/yieldaggregator/depositvault
- AuthAPI key in header X-API-Key
Request body
Example request
{
"amount": "1000000000000000000",
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"vaultNumber": "1",
"vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"yieldAggregatorId": "5000",
"gasPriority": "low",
"enableFee": false,
"poolAddress": "0xfad57d2039c21811c8f2b5d5b65308aa99d31559"
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"value": "0",
"gas": "2307200",
"data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000007a120",
"referenceId": "d33bc36f30ff49e385388ba332f67594"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.