Build Ready-to-Sign Multi-DEX Smart Swap Calldata (Base/Arb/ETH/Polygon)
build_smart_dex_swap_calldataAssembles non-custodial unsigned EVM transaction calldata (to, data, value, minOutAmount) across OpenOcean v4 + KyberSwap + LI.FI for any token symbol or 0x contract address. Saves 65%-71% vs wallet/bot swap fees.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"src": "<src>",
"dest": "<dest>",
"amount": "<amount>"
},
"name": "build_smart_dex_swap_calldata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | Yes | Input token symbol ('ETH', 'USDC') or 0x ERC-20 address | |
| dest | Yes | Output token symbol ('USDC', 'ETH', 'cbBTC') or any 0x ERC-20 token address | |
| mode | No | 'standard' (0.25% fee) or 'bot' (0.35% sniper execution) | |
| amount | Yes | Human-readable input token amount (e.g. 1.0) | |
| sender | No | Trader EVM wallet address (0x...) that will sign locally | |
| chainId | No | EVM chain ID ('8453' Base, '42161' Arbitrum, '137' Polygon, '10' Optimism, '1' Ethereum, '56' BSC) |