---
title: "Call data to unlock collateral"
method: GET
path: "/credit/v2/accounts/{account}/assets/{asset}/unlock"
tags: ["Credit"]
---

# Call data to unlock collateral

`GET /credit/v2/accounts/{account}/assets/{asset}/unlock`

Creates list of contract calls to unlock and withdraw
collateral and potentially unwrap position from earn vault

## Path parameters

- `account` string, required
- `asset` string, required

## Query parameters

- `amount` string, required
- `collateral` string, required
- `unwrap` boolean

## Response `200`

List of contract calls to execute unlocking of collateral

- CreditUnlockResponse
  - `calls` EvmContractCall[], required
    - `chain` string, required
    - `data` integer[], required
    - `to` integer[], required
    - `value` TypesBigInt, required

## Other responses

- `400` — Bad request due to invalid input or missing 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/revisions/1713381f8993/schema)
