---
title: "Deposit Vault"
method: POST
path: "/defi/v1/yieldaggregator/depositvault"
tags: ["yieldaggregator"]
---

# Deposit Vault

`POST /defi/v1/yieldaggregator/depositvault`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/yieldaggregator/depositvault`
- Auth: API key in header `X-API-Key`

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)

## Request body

- YieldaggregatorDepositvaultRequest: The request body for a /defi/v1/yieldaggregator/depositvault
  - `amount` string, required: Number of tokens, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: 1 WETH (18 decimals) = "1000000000000000000"; 1 USDC (6 decimals) = "1000000".
  - `tokenAddress` string: The contract address of the token being deposited. Use this field when identifying the vault by token along with the vaultNumber (if multiple vaults exist for the same token).
  - `from` string, required: Blockchain address of the sender. For EVM chains, use a checksummed hex address (e.g., 0xABCDEF...). This address must hold sufficient balance and will sign the transaction.
  - `gas` string: Maximum number of gas units to allocate for the transaction, as an integer string (e.g., '200000'). If omitted, gas is estimated automatically. Note: this is gas units, not wei or gwei.
  - `vaultNumber` string: A numeric identifier for the specific vault associated with the token. This is required when using the tokenAddress approach to distinguish between multiple vaults for the same token.
  - `vaultAddress` string: The direct blockchain address of the yield vault. Use this field if you wish to bypass tokenAddress and vaultNumber by specifying the exact vault address.
  - `yieldAggregatorId` '5000' | '5001' | '5002' | '5003' | '5100': The unique ID to specify the yield aggregator for queries or transactions.
  - `gasPriority` string: Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.
  - `enableFee` boolean: Flag to include a basis points fee transaction alongside the main transaction when set to true.
  - `poolAddress` string: The blockchain address of the pool associated with the vault, ensuring that the deposit is routed to the correct liquidity pool for yield generation.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
