> ## Documentation Index
> Fetch the complete documentation index at: https://loopscale.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deposit to Earn Vault

Builds the transactions that deposit tokens into an Earn vault and mint vault shares (LP tokens) to the wallet.

The response carries two transactions in `txBase64s`: an AUM refresh followed by the deposit itself. Sign both with the depositing wallet and submit them **in order as one Jito bundle**. The deposit transaction already contains the Jito tip. See [Sending Earn transactions](#sending-earn-transactions) below.

If the vault has `requiresAcknowledgment: true` (see [Get Earn Vault](https://loopscale.mintlify.site/api-reference/data/earn/get-earn-vault.md)), call [Acknowledge Earn Vault](https://loopscale.mintlify.site/api-reference/transactions/earn/acknowledge.md) for the wallet before its first deposit.

## Body

**address** `string` *required*

Earn vault address.

**wallet** `string` *required*

Depositing wallet. It pays fees and signs both transactions.

**amount** `string | integer` *required*

Amount to deposit, in base units of the deposit mint (for example `"1000000"` is 1 USDC).

**mint** `string`

Token to deposit. Defaults to the vault's underlying (`acceptedAssetMint`). Must be one of the vault's token entries (`parsedAccountJson` on [Get Earn Vault](https://loopscale.mintlify.site/api-reference/data/earn/get-earn-vault.md)), otherwise the request fails.

**minLpOut** `string | integer`

Minimum shares to receive, in LP base units. The transaction fails if fewer would be minted. Defaults to `0` (no slippage protection).

**providerKind** `string` (default: exponent)

Vault provider. Only `exponent` is supported today.

## Response

**txBase64s** `string[]`

Base64 v0 transactions to sign and send in order as one bundle: `[aumRefresh, deposit]`.

**txBase64** `string`

The deposit transaction on its own (the last entry of `txBase64s`).

**action** `string`

`deposit`.

**providerKind** `string`

Provider that built the transaction.

**vault** `string`

Vault address.

**user** `string`

Wallet the transaction was built for.

**setupIxs** `object[]`

Decoded setup instructions in the deposit transaction (compute budget, heap frame, Jito tip, token account creation).

**ixs** `object[]`

Decoded vault instructions in the deposit transaction.

**luts** `string[]`

Address lookup tables the deposit transaction uses.

**signers** `string[]`

Extra signers that already signed the deposit transaction. Empty for deposits.

**missingLuts** `string[]`

Lookup tables that could not be loaded. Diagnostic only.

**accountsNotInLuts** `string[]`

Accounts passed outside lookup tables. Diagnostic only.

```bash Example theme={null}
curl -X POST https://tars.loopscale.com/v1/pandora/earn/vaults/deposit/tx \
  -H "Content-Type: application/json" \
  -d '{
    "address": "EsTx9ToYW2k1DsTw6ccpmP3RrXQriod114hcM7U5ZKaR",
    "wallet": "<WALLET>",
    "amount": "1000000"
  }'
```

```json 200 theme={null}
{
  "providerKind": "exponent",
  "action": "deposit",
  "vault": "EsTx9ToYW2k1DsTw6ccpmP3RrXQriod114hcM7U5ZKaR",
  "user": "<WALLET>",
  "setupIxs": [{ "programId": "ComputeBudget111111111111111111111111111111", "accounts": [], "data": "..." }],
  "ixs": [{ "programId": "sVau1tXvayVWfotzm9Ahcv2qfnnfRWttt78BCnNC6dD", "accounts": ["..."], "data": "..." }],
  "luts": ["EmzYGKrZEyLvaRbmJGV5cdCqNjdPKpH62oscdGD7oui6"],
  "missingLuts": [],
  "accountsNotInLuts": ["..."],
  "signers": [],
  "txBase64": "<DEPOSIT_TX>",
  "txBase64s": ["<AUM_REFRESH_TX>", "<DEPOSIT_TX>"]
}
```

## Sending Earn transactions

Every Earn transaction endpoint (deposit, withdraw request, claim, cancel) returns the same shape:

1. Deserialize each entry of `txBase64s` as a `VersionedTransaction`.
2. Sign each one with the wallet. Keep any signatures already present: a queued withdraw request comes partially signed by its new request account (listed in `signers`).
3. Submit the signed transactions **in the order returned** as a single Jito bundle. The first refreshes the vault's AUM so the action is priced at current NAV. The last carries the Jito tip. Sending the action alone, or out of order, can fail or price against stale NAV.

Transactions use a recent blockhash from build time, so sign and send promptly.

## Errors

If a transaction can't be built, the endpoint returns `500` with `error.code`, `error.message`, and the `accountsNotInLuts` and `missingLuts` diagnostics.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.