POST
/
api
/
v1
/
shortcuts
/
bundle
curl --request POST \
  --url https://api.enso.finance/api/v1/shortcuts/bundle \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "protocol": "enso",
    "action": "route",
    "args": {
      "tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "tokenOut": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
      "amountIn": "100000000000",
      "slippage": "300",
      "fee": [
        "100"
      ],
      "feeReceiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
    }
  }
]'
{
  "bundle": [
    {
      "protocol": "enso",
      "action": "route",
      "args": {
        "tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
        "tokenOut": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
        "amountIn": "100000000000",
        "slippage": "300",
        "fee": [
          "100"
        ],
        "feeReceiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
      }
    }
  ],
  "gas": "<string>",
  "createdAt": 123,
  "tx": {
    "data": "<string>",
    "to": "<string>",
    "from": "<string>",
    "value": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

chainId
number
default:1

Chain ID of the network to execute the transaction on

fromAddress
string
default:0xd8da6bf26964af9d7eed9e03e53415d37aa96045
required

Ethereum address of the wallet to send the transaction from

routingStrategy
enum<string> | null
default:delegate

Routing strategy to use

Available options:
delegate,
router
receiver
string

Ethereum address of the receiver of the tokenOut

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

spender
string

Ethereum address of the spender of the tokenIn

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

Body

application/json · object[]
protocol
string[]
required

Protocol to interact with

Example:

"enso"

action
enum<string>
required
Available options:
approve,
borrow,
bridge,
deposit,
singledeposit,
multideposit,
tokenizedsingledeposit,
tokenizedmultideposit,
multioutsingledeposit,
depositclmm,
harvest,
permittransferfrom,
redeem,
singleredeem,
multiredeem,
tokenizedsingleredeem,
tokenizedmultiredeem,
redeemclmm,
repay,
swap,
transfer,
transferfrom,
route,
call,
split,
merge,
balance,
minAmountOut,
slippage
Example:

"route"

args
object
required
Example:
{
  "tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "tokenOut": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
  "amountIn": "100000000000",
  "slippage": "300",
  "fee": ["100"],
  "feeReceiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
}

Response

200 - application/json
bundle
object[]
required
gas
string
required
createdAt
number
required

Block number the transaction was created on

tx
object
required

The tx object to use in ethers