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

# Wrap asset into earn vault

`GET /credit/earn/wrap`

## Request

- Base URL: `https://api.sprinter.tech`
- URL: `https://api.sprinter.tech/credit/earn/wrap`
- Auth: none declared

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

- **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 changed from `string` to `array` for status `200`
  - the `calls/items/to` response's property type changed from `string` to `array` for status `200`
  - the `calls/items/value` response's property type changed from `string` to `object` for status `200`
- **2026-03-30** `2a8a11e2dda0`: 3 breaking
  - the `calls/items/data` response's property type changed from `array` to `string` for status `200`
  - the `calls/items/to` response's property type changed from `array` to `string` for status `200`
  - the `calls/items/value` response's property type 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

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

---

[API](https://skmtc.dev/sprintertech/apis/sprinter-api.md) - [All operations](https://skmtc.dev/sprintertech/apis/sprinter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sprintertech/apis/sprinter-api/revisions/1713381f8993?raw)
