Credit
Unwrap position from earn vault
Changed onCreates list of contract calls to unwrap a position from an earn vault, converting vault shares back to the underlying asset.
get/credit/earn/unwrap
Request
- Base URLhttps://api.sprinter.tech
- URLhttps://api.sprinter.tech/credit/earn/unwrap
- Authnone declared
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
Example response
{
"amountOut": "1000000",
"minAmountOut": "997000",
"tokenOut": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}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