Calldata to lock asset as collateral
Changed onCreates 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.
Request
- Base URLhttps://api.sprinter.tech
- URLhttps://api.sprinter.tech/credit/accounts/{account}/lock
- Authnone declared
Path parameters
Account that holds the asset and will execute calls
Query parameters
Amount in lowest denomination (e.g., wei for ETH)
Asset address in eth format - either underlying asset (USDC) or earn position (gtUSDCp)
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
Changes
- info
the endpoint scheme security
ApiKeyAuthwas removed from the API
- info
- breaking
the
//response's property type changed fromstringtoarrayfor status - breaking
the
//response's property type changed fromstringtoarrayfor status - breaking
the
//response's property type changed fromstringtoobjectfor status
- breaking