---
title: "Preview a direct vault deposit"
method: POST
path: "/v1/earn/vault-deposit-previews"
tags: ["Earn"]
---

# Preview a direct vault deposit

`POST /v1/earn/vault-deposit-previews`

Quotes how many shares a direct vault deposit would mint from the provider's live accounting. Use it when the strategy's `depositSlippage.quoteRequired` is true, then derive `minSharesOut` from `sharesOut` minus the chosen tolerance. Read-only, no idempotency key, and 501 when the provider cannot quote deposits.

## Headers

- `x-project-id` string — Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.

## Request body

- object — Quote one direct vault deposit against the provider's live accounting. Read-only: nothing is built and nothing is persisted.
  - `strategyId` string, required
  - `amount` string, required — Deposit amount in the vault token's units.

## Response `200`

Live deposit quote

- object — Standard success response envelope.
  - `data` object, required
    - `strategyId` string, required
    - `sharesOut` string, required — Shares the deposit would mint at the live rate. Derive `minSharesOut` from this value minus the chosen tolerance, quantized to `shareDecimals`.
    - `shareDecimals` integer, required — The share mint's decimals, which the floor must be quantized to.
    - `blockingIssues` object[], required — Conditions the provider reports would block this deposit; empty when none.
      - `code` string, required
      - `message` string, required
    - `feeSponsored` boolean, required — Whether SDP's treasury vault flow would use its configured paymaster on this cluster. Embedded Yield partners sponsor their external-wallet flow separately by passing `feePayer` to the transaction build.
  - `meta` object, required — Response metadata.
    - `requestId` string, required — Request identifier for tracing.
    - `timestamp` string, date-time, required — ISO 8601 timestamp.

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `429` — Error
- `500` — Error
- `501` — Error
- `503` — Error

## Changes

- **2026-09-04** `787deeb0b4aa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/solana/apis/solana-developer-platform-api/changes/v1/earn/vault-deposit-previews/post.md)

---

[API](https://skmtc.dev/solana/apis/solana-developer-platform-api.md) · [All operations](https://skmtc.dev/solana/apis/solana-developer-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/solana/solana-developer-platform-api/revisions/787deeb0b4aa/schema)
