get_route
Full routing breakdown for a swap: best venue split, expected and minimum output, price impact (ppm), and the feeLegs a signed order must embed. Read-only. Amounts are RAW token units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | No | optional maker wallet address — include it to get the exact feeLegs an order for this wallet must embed | |
| tokenIn | Yes | ERC-20 address of the token being sold (0x-hex) | |
| amountIn | Yes | amount of tokenIn in RAW token units (decimal string, already scaled by the token's decimals) | |
| tokenOut | Yes | ERC-20 address of the token being bought (0x-hex) | |
| orderType | No | order kind being priced (limit | stop_loss | take_profit | dca | trailing) — selects the fee cell served in feeLegs; omit for a direct swap | |
| triggered | No | with orderType=dca: the schedule gates on a trigger (triggered DCA fee cell) | |
| slippageBps | No | slippage tolerance in basis points (default 100 = 1%) |