sodax_get_solver_quote
Retrieve a cross-chain swap quote from SODAX solver on Sonic hub. Specify source and destination token addresses, amount, and quote type to get either input or output amount.
Instructions
Get a swap quote from the SODAX solver. IMPORTANT: tokenSrc/tokenDst must be hub-chain asset addresses — the SODAX hub is Sonic (chainId 146); spoke-chain token addresses are rejected with 'not compatible with the quote service'. Call sodax_get_solver_oracle with chainId='146' to look up valid token addresses. quote_type='exact_input' quotes the destination amount you'd receive; 'exact_output' quotes the source amount you'd need to supply. Returns 'No path found' if the solver can't route between the tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenSrc | Yes | REQUIRED: Source token address (the token you're spending). Must be a hub-chain asset address (chainId 146) — look one up via sodax_get_solver_oracle. | |
| tokenDst | Yes | REQUIRED: Destination token address (the token you want to receive). Must be a hub-chain asset address (chainId 146) — look one up via sodax_get_solver_oracle. | |
| amount | Yes | REQUIRED: Amount in the smallest unit of the input token (for exact_input) or output token (for exact_output). String to preserve precision. | |
| quoteType | No | 'exact_input' (default): given input amount, quote output amount. 'exact_output': given output amount, quote input amount required. | exact_input |
| format | No | Response format: 'json' for raw data or 'markdown' for formatted text | markdown |