Credit

Wrap asset into earn vault

Changed on

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

Request

  • Base URL
    https://api.sprinter.tech
  • URL
    https://api.sprinter.tech/credit/earn/wrap
  • Auth
    none 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

amountOutstring required

Estimated shares minted

tokenOutstring required

Vault share token received

Example response

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

Changes

    • info

      the endpoint scheme security ApiKeyAuth was removed from the API

    • breaking

      the // response's property type changed from string to array for status

    • breaking

      the // response's property type changed from string to array for status

    • breaking

      the // response's property type changed from string to object for status