Build swap transaction (non-custodial)
exchange_build_swapUnsigned approval + swap transactions for the best route. Your agent signs and broadcasts from its own wallet; Ellimist never takes custody. Conversions are executed by third-party smart contracts (routed by LI.FI) that may fail or be exploited; funds may be lost and transactions are irreversible. Price: $0.005 USDC per call via x402 (no account). Not charged if it fails.
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": {
"from_chain": "<from_chain>",
"to_chain": "<to_chain>",
"from_token": "<from_token>",
"to_token": "<to_token>",
"from_amount": "<from_amount>",
"from_address": "<from_address>"
},
"name": "exchange_build_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | CHEAPEST | |
| slippage | No | ||
| to_chain | Yes | ||
| to_token | Yes | symbol (ETH) or token address | |
| from_chain | Yes | ||
| from_token | Yes | symbol (USDC) or token address | |
| to_address | No | ||
| from_amount | Yes | amount in the token's smallest unit | |
| from_address | Yes | ||
| allow_high_impact | No |