Bundle a list of actions into a single transaction
Changed onRequest
- Base URLhttps://api.enso.finance
- URLhttps://api.enso.finance/api/v1/shortcuts/bundle
- AuthHTTP bearer
Query parameters
Chain ID of the network to execute the transaction on
Ethereum address of the wallet to send the transaction from
Referral code that will be included in an on-chain event.
Routing strategy to use
Controls how quote is built based on execution mode
Ethereum address of the receiver of the tokenOut
Ethereum address of the spender of the tokenIn
Ethereum address of the receiver of any dust tokens that might be produced during the execution of actions
A list of swap aggregators to be ignored from consideration
Flag to skip quoting (if true, amountOut and gas will not be returned)
Request body
Example request
[
{
"protocol": "enso",
"action": "route",
"args": {
"tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"tokenOut": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"slippage": "100",
"receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"destinationChainId": 42161,
"refundReceiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"ignoreAggregators": [
"1inch",
"paraswap"
],
"ignoreStandards": [
"uniswap-v2"
],
"ignoreBridges": [
"ccip"
]
}
}
]Response
Example response
{
"bundle": [
{
"protocol": "enso",
"action": "route",
"args": {
"tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"tokenOut": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"amountIn": "100000000000",
"slippage": "300"
}
}
],
"route": [
{
"via": "cctp-forwarder"
}
],
"metadata": {
"bridgeRefundAssets": [
{
"token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"recipient": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"symbol": "USDC"
}
]
},
"approvals": [
{
"from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"to": "0x1111111111111111111111111111111111111111",
"data": "0x"
}
]
}Changes
- warning
added the new
mayanenum value to the///response property for the response status - info
added the new
mayanenum value to the request property///////////////////////// - info
added the new
mayanenum value to the request property////////////////// - info
added the new
mayanenum value to the request property///// - info
added the new
mayanenum value to the request property////////////////// - info
added the new
mayanenum value to the request property///////////
- warning
- info
added the enum value
akkato the propertyitems/of thequeryrequest parameterignoreAggregators - info
added the new
akkaenum value to the request property///////////////////////// - info
added the new
akkaenum value to the request property////////////////// - info
added the new
akkaenum value to the request property////////////////// - info
added the new
akkaenum value to the request property///////////
- info