---
updatedAt: 2026-08-26T07:27:24.000Z
agentTools:
  projectIndex: https://docs.blockdaemon.com/llms.txt
---

# Deposit Pool

Enables users to deposit tokens into yield-generating pools on supported blockchains, specifying the target pool either via a direct poolAddress or by providing the tokenAddress with additional parameters. Upon success, the endpoint returns key details (chainId, addresses, transaction data, referenceId) that streamline investment management in decentralized finance protocols.

> 💡 
**Compute Unit Value:** `30` (Fixed)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "name": "Blockdaemon",
      "email": "info@blockdaemon.com"
    },
    "description": "The Blockdaemon DeFi API provides a single interface to a multitude of DeFi projects and blockchains",
    "title": "Blockdaemon DeFi API",
    "version": "1.0.0",
    "x-logo": {
      "altText": "Blockdaemon logo",
      "backgroundColor": "#fafafa",
      "url": "https://storage.googleapis.com/blockdaemon-app-static-images/marketing/PNG/dark-logo.png"
    }
  },
  "externalDocs": {
    "description": "Blockdaemon DeFi documentation",
    "url": "http://www.blockdaemon.com/api/defi"
  },
  "servers": [
    {
      "url": "https://svc.blockdaemon.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "`X-API-Key: <Token>` header must be set to authenticate API requests.You can create tokens in the \"Configure\" tab of your API access area at https://app.blockdaemon.com."
      }
    },
    "schemas": {
      "_yieldaggregator_depositpool_Request": {
        "type": "object",
        "properties": {
          "yieldAggregatorId": {
            "type": "string",
            "description": "The unique ID to specify the yield aggregator for queries or transactions.",
            "enum": [
              "5100"
            ],
            "example": "5100"
          },
          "amount": {
            "type": "string",
            "description": "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\".",
            "example": "1000000000000000000"
          },
          "from": {
            "type": "string",
            "description": "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.",
            "example": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402"
          },
          "gas": {
            "type": "string",
            "description": "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.",
            "example": "100000"
          },
          "tokenAddress": {
            "type": "string",
            "description": "The smart contract address of the token being deposited. Use this parameter when you do not have the direct yield pool address available.",
            "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
          },
          "poolAddress": {
            "type": "string",
            "description": "The direct blockchain address of the yield pool where the deposit will be credited. Provide this if available; otherwise, you may use tokenAddress to identify the target pool.",
            "example": "0xfad57d2039c21811c8f2b5d5b65308aa99d31559"
          },
          "gasPriority": {
            "type": "string",
            "description": "Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.",
            "example": "low"
          },
          "enableFee": {
            "type": "boolean",
            "description": "Flag to include a basis points fee transaction alongside the main transaction when set to true.",
            "example": false
          }
        },
        "required": [
          "amount",
          "from"
        ],
        "description": "The request body for a /defi/v1/yieldaggregator/depositpool",
        "example": {
          "yieldAggregatorId": "5100",
          "amount": "1000000000000000000",
          "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
          "gas": "100000",
          "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "poolAddress": "0xfad57d2039c21811c8f2b5d5b65308aa99d31559",
          "gasPriority": "low",
          "enableFee": false
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/defi/v1/yieldaggregator/depositpool": {
      "post": {
        "tags": [
          "yieldaggregator"
        ],
        "summary": "Deposit Pool",
        "description": "Enables users to deposit tokens into yield-generating pools on supported blockchains, specifying the target pool either via a direct poolAddress or by providing the tokenAddress with additional parameters. Upon success, the endpoint returns key details (chainId, addresses, transaction data, referenceId) that streamline investment management in decentralized finance protocols.\n\n> 💡 \n**Compute Unit Value:** `30` (Fixed)",
        "operationId": "yieldaggregatorDepositpool",
        "requestBody": {
          "required": true,
          "description": "The request body for a /defi/v1/yieldaggregator/depositpool",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/_yieldaggregator_depositpool_Request"
              },
              "example": {
                "yieldAggregatorId": "5100",
                "amount": "1000000000000000000",
                "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
                "gas": "100000",
                "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                "poolAddress": "0xfad57d2039c21811c8f2b5d5b65308aa99d31559",
                "gasPriority": "low",
                "enableFee": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  },
                  "example": {
                    "status": 200,
                    "msg": "success",
                    "data": {
                      "chainId": "1",
                      "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
                      "to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
                      "value": "0",
                      "gas": "2307200",
                      "data": "0xa694fc3a00000000000000000000000000000000000000000000000000000000004b4a52",
                      "referenceId": "9fdce4b6184e442cbe52d0c3249c7657"
                    }
                  }
                }
              }
            }
          }
        },
        "x-bd-cu": "30",
        "x-bd-cu-type": "fixed",
        "x-internal": false
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```