v9

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

Unwrap position from earn vault

Creates list of contract calls to unwrap a position from an earn vault, converting vault shares back to the underlying asset.

get/credit/earn/unwrap

Query parameters

ownerstring required

Owner address that holds the vault shares

receiverstring required

Address that will receive the unwrapped underlying tokens

amountstring required

Amount of shares to unwrap

assetstring required

Vault shares token address

slippagenumber

Slippage tolerance in percent (e.g. 0.5 = 0.5%)

chainstring required

Chain ID in CAIP format

Response

OK

amountOutstring required

Estimated amount of tokens to receive

minAmountOutstring required

Minimum amount of tokens to receive (after slippage)

tokenOutstring required

Token address that will be received after unwrapping

Example response

{
  "amountOut": "1000000",
  "minAmountOut": "997000",
  "tokenOut": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}