Credit

Call data to unlock collateral

Creates list of contract calls to unlock and withdraw collateral and potentially unwrap position from earn vault

get/credit/accounts/{account}/unlock

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

unwrapboolean

Whether to generate call to unwrap from earn strategy

Response

List of contract calls to execute unlocking of collateral

Changes

Changed in 3 of the 9 revisions of this API.61

    • 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