Skip to main content
GET
/
credit
/
earn
/
wrap
curl --request GET \
  --url 'https://api.sprinter.tech/credit/earn/wrap'
{
  "amountOut": "999850000000000000000",
  "calls": [
    {
      "chain": "8453",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "data": "0x095ea7b3000000000000000000000000abcdef1234567890abcdef1234567890abcdef12",
      "value": "0"
    },
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ],
  "tokenOut": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61"
}
The chain parameter uses CAIP-2 format: eip155:<chainId>. For example, eip155:8453 for Base. See Supported Chains for the full list.
curl --request GET \
  --url 'https://api.sprinter.tech/credit/earn/wrap'
{
  "amountOut": "999850000000000000000",
  "calls": [
    {
      "chain": "8453",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "data": "0x095ea7b3000000000000000000000000abcdef1234567890abcdef1234567890abcdef12",
      "value": "0"
    },
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ],
  "tokenOut": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61"
}

Query Parameters

account
string
required

Account providing the underlying asset

amount
string
required

Amount of underlying asset to wrap

token
string
required

Underlying token address

earn
string

Earn strategy identifier

chain
string
required

Chain CAIP-2 identifier

Response

OK

amountOut
string
required

Estimated shares minted

Example:

"1000000000000000000"

calls
object[]
required

approve + deposit calls

tokenOut
string
required

Vault share token received

Example:

"0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61"