---
title: "Deposit into Vault"
method: POST
path: "/v1/wallets/{wallet_id}/ethereum_yield_deposit"
tags: ["Yield"]
---

# Deposit into Vault

`POST /v1/wallets/{wallet_id}/ethereum_yield_deposit`

Deposit assets from a wallet into an ERC-4626 vault. This endpoint generates and broadcasts the necessary approval and deposit transactions.

## Path parameters

- `wallet_id` string, required — ID of the wallet.

## Headers

- `privy-app-id` string, required — ID of your Privy app.
- `privy-authorization-signature` string — Request authorization signature. If multiple signatures are required, they should be comma separated.
- `privy-request-expiry` string — Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.
- `privy-idempotency-key` string — Idempotency keys ensure API requests are executed only once within a 24-hour window.

## Request body

- EthereumYieldDepositInput — Input for depositing assets into an ERC-4626 vault.
  - `asset_amount` string, required — The amount of the underlying asset to deposit, in the smallest unit (e.g., wei for ETH, 6 decimals for USDC). Must be a non-negative integer string.
  - `vault_id` string, required — The ID of the vault to deposit into.

## Response `200`

Yield sweep created successfully.

- EthereumYieldSweepResponse — A yield sweep record representing a deposit or withdrawal.
  - `asset_amount` string, nullable, required — The amount of underlying assets involved. Set after the sweep is confirmed on-chain.
  - `created_at` number, required — Unix timestamp of when the sweep was created, in milliseconds.
  - `id` string, required — Unique identifier for the yield sweep.
  - `share_amount` string, nullable, required — The amount of vault shares involved. Set after the sweep is confirmed on-chain.
  - `status` 'pending' | 'confirmed' | 'failed', required — Status of a yield sweep.
  - `type` 'deposit' | 'withdraw', required — Type of yield sweep.
  - `updated_at` number, required — Unix timestamp of when the sweep was last updated, in milliseconds.
  - `vault_id` string, required — The ID of the vault involved in the sweep.
  - `wallet_id` string, required — The ID of the wallet involved in the sweep.

---

[API](https://skmtc.net/privy-io/apis/privy-api.md) · [All operations](https://skmtc.net/privy-io/apis/privy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/privy-io/privy-api/revisions/bb2eb34156cc/schema)
