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

---

[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)
