Credit
Wrap asset into earn vault
Changed onCreates a list of contract calls (approve + deposit) to wrap an underlying token into an earn vault and receive vault shares.
get/credit/earn/wrap
Request
- Base URLhttps://api.sprinter.tech
- URLhttps://api.sprinter.tech/credit/earn/wrap
- Authnone declared
Query parameters
accountstring required
Account providing the underlying asset
amountstring required
Amount of underlying asset to wrap
tokenstring required
Underlying token address
earnstring
Earn strategy identifier
chainstring required
Chain CAIP-2 identifier
Response
OK
Example response
{
"amountOut": "1000000000000000000",
"tokenOut": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61"
}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