Credit Advanced
Unwrap 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
The
chain parameter uses CAIP-2 format: eip155:<chainId>. For example, eip155:8453 for Base. See Supported Chains for the full list.Query Parameters
Owner address that holds the vault shares
Address that will receive the unwrapped underlying tokens
Amount of shares to unwrap
Vault shares token address
Slippage tolerance in percent (e.g. 0.5 = 0.5%)
Chain ID in CAIP format
Response
OK
Estimated amount of tokens to receive
Example:
"1000000"
List of contract calls to execute the unwrap
Minimum amount of tokens to receive (after slippage)
Example:
"997000"
Token address that will be received after unwrapping
Example:
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"