Skip to main content
POST
/
api
/
v1
/
shortcuts
/
bundle
Bundle a list of actions
curl --request POST \
  --url https://api.enso.finance/api/v1/shortcuts/bundle \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "protocol": "enso",
    "action": "route",
    "args": {}
  }
]'
{
  "bundle": [
    {
      "protocol": "enso",
      "action": "route",
      "args": {}
    }
  ],
  "gas": "<string>",
  "amountsOut": {},
  "route": [
    {
      "tokenIn": [
        "<string>"
      ],
      "tokenOut": [
        "<string>"
      ],
      "protocol": "<string>",
      "action": "<string>",
      "primary": "<string>",
      "internalRoutes": [
        "<string>"
      ],
      "args": {},
      "chainId": 123,
      "sourceChainId": 123,
      "destinationChainId": 123
    }
  ],
  "createdAt": 123,
  "tx": {
    "data": "<string>",
    "to": "<string>",
    "from": "<string>",
    "value": "<string>"
  },
  "priceImpact": 123,
  "feeAmount": {}
}

Query Parameters

chainId
number
default:1
fromAddress
string
required
Example:
routingStrategy
enum<string> | null
Available options:
ensowallet,
router,
delegate,
router-legacy,
delegate-legacy
receiver
string
Example:
spender
string
Example:
ignoreAggregators
string[] | null
referralCode
string
Maximum length: 16
Example:
refundReceiver
string
Example:
skipQuote
boolean

Body

application/json · object[]
protocol
string
required
Example:
action
enum<string>
required
Available options:
approve,
borrow,
borrowwithpositionid,
bridge,
deposit,
singledeposit,
singledepositwithpositionid,
multideposit,
tokenizedsingledeposit,
tokenizedmultideposit,
multioutsingledeposit,
depositclmm,
harvest,
permittransferfrom,
redeem,
singleredeem,
singleredeemwithpositionid,
multiredeem,
tokenizedsingleredeem,
tokenizedmultiredeem,
redeemclmm,
repay,
repaywithpositionid,
swap,
transfer,
transferfrom,
route,
call,
split,
merge,
balance,
minamountout,
slippage,
fee,
ensofee,
paymasterfee
Example:
args
object
required
  • Approve
  • Borrow
  • Bridge
  • Deposit
  • SingleDeposit
  • MultiDeposit
  • TokenizedSingleDeposit
  • TokenizedMultiDeposit
  • MultiOutSingleDeposit
  • DepositCLMM
  • Harvest
  • PermitTransferFrom
  • Redeem
  • SingleRedeem
  • MultiRedeem
  • TokenizedSingleRedeem
  • TokenizedMultiRedeem
  • RedeemCLMM
  • Repay
  • Swap
  • Transfer
  • TransferFrom
  • Route
  • Slippage
  • BorrowWithPositionId
  • SingleDepositWithPositionId
  • SingleRedeemWithPositionId
  • RepayWithPositionId
  • Call
  • Split
  • Merge
  • Balance
  • MinAmountOut
  • Fee

Response

200 - application/json
bundle
object[]
required
route
object[]
required
createdAt
number
required
tx
object
required
priceImpact
number | null
required
feeAmount
object
required
gas
string
amountsOut
object