plan_route
Plan the cheapest MULTI-HOP route between ANY two assets — composes DEX swaps (non-custodial) + instant-lane bridges (custodial-at-venue) into one path, with every fee and per-leg custody disclosed. e.g. USDT on Tron -> XAUt on Ethereum becomes a USDT bridge + a DEX swap. from/to are an instant id (e.g. 'usdt-tron') or a {chain,address} DEX token; amount is integer base units of from. Returns ordered legs (kind, venue, custody, amounts, fee) + total output. Execute legs in order: DEX legs via build_swap_transaction, bridge legs via create_instant_shift.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | instant id string OR a DEX token {chain,address} | |
| from | Yes | instant id string (e.g. 'usdt-tron') OR a DEX token {chain,address} | |
| amount | Yes | integer base units of `from` |