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

Changes

Changed in 4 of the 9 revisions of this API.63

    • the endpoint scheme security ApiKeyAuth was removed from the API

      api-security-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the calls/items/data response's property type/format changed from string/ to array/ for status 200

      response-property-type-changed

    • the calls/items/to response's property type/format changed from string/ to array/ for status 200

      response-property-type-changed

    • the calls/items/value response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • the calls/items/data response's property type/format changed from array/ to string/ for status 200

      response-property-type-changed

    • the calls/items/to response's property type/format changed from array/ to string/ for status 200

      response-property-type-changed

    • the calls/items/value response's property type/format changed from object/ to string/ for status 200

      response-property-type-changed

    • the endpoint scheme security ApiKeyAuth was added to the API

      api-security-added

    • the endpoint scheme security ApiKeyAuth. was removed from the API

      api-security-removed