Bundle a list of actions
Returns a single transaction bundling the submitted actions. For available actions, see /actions endpoint.
Request
- Base URLhttps://api.enso.build
- URLhttps://api.enso.build/api/v1/shortcuts/bundle
- Authnone required
Query parameters
Chain ID of the network to execute the transaction on
Ethereum address of the wallet to send the transaction from
Routing strategy to use. Use delegate when:
- You want to specify spender
- You want to use the harvest or deposit action with /bundle endpoint
Ethereum address of the receiver of the tokenOut
Ethereum address of the spender of the tokenIn
A list of swap aggregators to be ignored from consideration. See /aggregators endpoint for available aggregators
Referral code that will be included in an on-chain event after encoding to hex. At most 16 characters.
Ethereum address of the receiver of any dust tokens that might be produced during the execution of actions
Flag to skip quoting (if true, amountOut and gas will not be returned)
Request body
Example request
[
{
"protocol": "enso",
"action": "route",
"args": {
"primaryAddress": "0x38EA452219524Bb87e18dE1C24D3bB59510BD783",
"destinationChainId": 42161,
"tokenIn": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amountIn": "1000000000",
"receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"protocolArgs": {
"transferType": "fast",
"forwardFee": "high",
"isHyperCoreTransfer": true
}
}
}
]Response
Example response
{
"bundle": [
{
"protocol": "enso",
"action": "route",
"args": {
"primaryAddress": "0x38EA452219524Bb87e18dE1C24D3bB59510BD783",
"destinationChainId": 42161,
"tokenIn": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amountIn": "1000000000",
"receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"protocolArgs": {
"transferType": "fast",
"forwardFee": "high",
"isHyperCoreTransfer": true
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.