Credit
Wrap asset into earn vault
Creates a list of contract calls (approve + deposit) to wrap an underlying token into an earn vault and receive vault shares.
get/credit/earn/wrap
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"
}