Skip to main content
GET
/
credit
/
earn
/
unwrap
curl --request GET \
  --url 'https://api.sprinter.tech/credit/earn/unwrap'
{
  "amountOut": "1000000",
  "calls": [
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0xa9059cbb000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ],
  "minAmountOut": "997000",
  "tokenOut": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
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/unwrap'
{
  "amountOut": "1000000",
  "calls": [
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0xa9059cbb000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ],
  "minAmountOut": "997000",
  "tokenOut": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

Query Parameters

owner
string
required

Owner address that holds the vault shares

receiver
string
required

Address that will receive the unwrapped underlying tokens

amount
string
required

Amount of shares to unwrap

asset
string
required

Vault shares token address

slippage
number
default:0.3

Slippage tolerance in percent (e.g. 0.5 = 0.5%)

chain
string
required

Chain ID in CAIP format

Response

OK

amountOut
string
required

Estimated amount of tokens to receive

Example:

"1000000"

calls
object[]
required

List of contract calls to execute the unwrap

minAmountOut
string
required

Minimum amount of tokens to receive (after slippage)

Example:

"997000"

tokenOut
string
required

Token address that will be received after unwrapping

Example:

"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"