v9

latestOpenAPI 3.0.0raw.githubusercontent.com2026-06-173145129.1 KB
Credit

Calldata to lock asset as collateral

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.

get/credit/accounts/{account}/lock

Path parameters

accountstring required

Account that holds the asset and will execute calls

Query parameters

amountstring required

Amount in lowest denomination (e.g., wei for ETH)

assetstring required

Asset address in eth format - either underlying asset (USDC) or earn position (gtUSDCp)

earnstring

Earn strategy to wrap asset before depositing. If omitted, asset is deposited directly without wrapping.

Response

List of contract calls to execute locking of collateral