v9

latestOpenAPI 3.0.0raw.githubusercontent.com2026-06-173145129.1 KB
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

amountOutstring required

Estimated shares minted

tokenOutstring required

Vault share token received

Example response

{
  "amountOut": "1000000000000000000",
  "tokenOut": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61"
}