---
title: "Generate deposit instructions"
method: POST
path: "/deposit/ix"
tags: ["Deposits"]
---

# Generate deposit instructions

`POST /deposit/ix`

Generates raw Solana instructions for depositing into a strategy. Public keys in each instruction are serialized as 32-byte integer arrays.

## Request body

- StructuredInputForDeposit
  - `params` InputForDeposit, required
    - `all` boolean, nullable — Deposit the full token-account balance. Defaults to `false` and is not allowed for SOL.
    - `amount` integer, nullable — Amount in the token's smallest unit. Required unless `all` is `true`.
    - `base_asset` string, required — Base-asset mint address within the strategy. Required.
    - `fund_id` string, nullable — Deprecated and rejected by the API. Use `strategy_id` + `base_asset`.
    - `payer_key` string, nullable — Transaction payer. Required by `/deposit/tx`; defaults to `user_key` for `/deposit/ix`.
    - `strategy_id` string, required — Strategy identifier. Required.
    - `user_key` string, required — Depositing wallet address. Required.
    - `user_token_account` string, nullable — Source token account. Defaults to the user's associated token account.

## Response `200`

Deposit instructions prepared successfully

- DepositInstructions
  - `deposit_instructions` SolanaInstruction[], required — Solana instructions serialized as byte-array public keys and instruction data.
    - `accounts` SolanaAccountMeta[], required
      - `is_signer` boolean, required
      - `is_writable` boolean, required
      - `pubkey` integer[], required — 32-byte public key.
    - `data` integer[], required — Raw instruction data.
    - `program_id` integer[], required — 32-byte program ID.
  - `lookup_table` string, required — Address lookup table required when assembling the transaction.

## Other responses

- `400` — Invalid deposit request
- `401` — Missing API key
- `404` — Invalid, inactive, or expired API key
- `500` — Internal server error

---

[API](https://skmtc.net/breeze-baby/apis/breeze-api.md) · [All operations](https://skmtc.net/breeze-baby/apis/breeze-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/breeze-baby/breeze-api/versions/d0a18846aa92/schema)
