GET
/
api
/
v1
/
shortcuts
/
route
/
nontokenized
curl --request GET \
  --url https://api.enso.finance/api/v1/shortcuts/route/nontokenized
{
  "gas": "<string>",
  "amountOut": 123,
  "priceImpact": 123,
  "feeAmount": [
    "<string>"
  ],
  "createdAt": 123,
  "tx": {
    "data": "<string>",
    "to": "<string>",
    "from": "<string>",
    "value": "<string>"
  },
  "route": [
    {
      "tokenIn": [
        "<string>"
      ],
      "tokenOut": [
        "<string>"
      ],
      "protocol": "<string>",
      "action": "<string>",
      "primary": "<string>",
      "internalRoutes": [
        "<string>"
      ],
      "args": {}
    }
  ]
}

Query Parameters

chainId
number
default:1

Chain ID of the network to execute the transaction on

Example:

80094

fromAddress
string
required

Ethereum address of the wallet to send the transaction from

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

routingStrategy
enum<string> | null

Routing strategy to use. For this API, always use delegate in conjunction with a Smart Wallet.

Available options:
delegate,
delegate-legacy
tokenIn
string[]
required

Ethereum address of the token to swap from. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Example:
[
  "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
]
positionOut
string
required

Ethereum address of the position to receive

Example:

"0xf99be47baf0c22b7eb5eac42c8d91b9942dc7e84"

slippage
string
default:50

Slippage in basis points (1/10000). If specified, minAmountOut should not be specified

Example:

"300"

fee
string[]

Fee in basis points (1/10000) for each amountIn value. Must be in range 0-100. If specified, this percentage of each amountIn value will be sent to feeReceiver

Example:
["100"]
feeReceiver
string

The Ethereum address that will receive the collected fee. Required if fee is provided

Example:

"0x220866B1A2219f40e72f5c628B65D54268cA3A9D"

amountIn
string[]
required

Amount of tokenIn to swap in wei

Example:
["1000000000000000000"]
receiver
string
required

Ethereum address of the receiver of the positionOut

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

spender
string

Ethereum address of the spender of the tokenIn

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

Response

200
application/json

The response is of type object.