---
title: "Calldata to lock asset as collateral"
method: GET
path: "/credit/accounts/{account}/lock"
tags: ["Credit"]
---

# Calldata to lock asset as collateral

`GET /credit/accounts/{account}/lock`

Creates list of contract calls to lock assets as collateral for credit account. Supports both underlying assets (e.g., USDC) which are wrapped into earn vault first, and earn positions (e.g., gtUSDCp) which are deposited directly.

## Path parameters

- `account` string, required

## Query parameters

- `amount` string, required
- `asset` string, required
- `earn` string

## Response `200`

List of contract calls to execute locking of collateral

- CreditLockResponse
  - `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

## 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/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/accounts/:account/lock/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)
