---
title: "Unwrap position from earn vault"
method: GET
path: "/credit/earn/unwrap"
tags: ["Credit"]
---

# Unwrap position from earn vault

`GET /credit/earn/unwrap`

Creates list of contract calls to unwrap a position from an earn vault,
converting vault shares back to the underlying asset.

## Query parameters

- `owner` string, required
- `receiver` string, required
- `amount` string, required
- `asset` string, required
- `slippage` number
- `chain` string, required

## Response `200`

OK

- CreditUnwrapResponse
  - `amountOut` string, required — Estimated amount of tokens to receive
  - `calls` EvmContractCall[], required — List of contract calls to execute the unwrap
    - `chain` string, required
    - `data` integer[], required
    - `to` integer[], required
    - `value` TypesBigInt, required
  - `minAmountOut` string, required — Minimum amount of tokens to receive (after slippage)
  - `tokenOut` string, required — Token address that will be received after unwrapping

## Other responses

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

---

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