---
title: "Wrap asset into earn vault"
method: GET
path: "/credit/earn/wrap"
tags: ["Credit"]
---

# Wrap asset into earn vault

`GET /credit/earn/wrap`

Creates a list of contract calls (approve + deposit) to wrap an
underlying token into an earn vault and receive vault shares.

## Query parameters

- `account` string, required
- `amount` string, required
- `token` string, required
- `earn` string
- `chain` string, required

## Response `200`

OK

- CreditWrapResponse
  - `amountOut` string, required — Estimated shares minted
  - `calls` EvmContractCall[], required — approve + deposit calls
    - `chain` string, required
    - `data` integer[], required
    - `to` integer[], required
    - `value` TypesBigInt, required
  - `tokenOut` string, required — Vault share token received

## Other responses

- `400` — Invalid input parameters
- `500` — Internal server error

## Changes

> 9 revisions in range; 1 could not be searched.

- **2026-04-02** `ce8ff009580d` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
- **2026-03-30** `30b6ea563119` — 3 breaking
  - the `calls/items/data` response's property type/format changed from `string`/`` to `array`/`` for status `200`
  - the `calls/items/to` response's property type/format changed from `string`/`` to `array`/`` for status `200`
  - the `calls/items/value` response's property type/format changed from `string`/`` to `object`/`` for status `200`
- **2026-03-30** `2a8a11e2dda0` — 3 breaking
  - the `calls/items/data` response's property type/format changed from `array`/`` to `string`/`` for status `200`
  - the `calls/items/to` response's property type/format changed from `array`/`` to `string`/`` for status `200`
  - the `calls/items/value` response's property type/format changed from `object`/`` to `string`/`` for status `200`
- **2026-03-24** `a09cd74d2a58` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `ApiKeyAuth.` was removed from the API

[Change history](https://skmtc.dev/sprintertech/apis/untitled-api/changes/credit/earn/wrap/get.md)

---

[API](https://skmtc.dev/sprintertech/apis/untitled-api.md) · [All operations](https://skmtc.dev/sprintertech/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sprintertech/untitled-api/revisions/1713381f8993/schema)
