swap_quote
Get a dry token-swap quote: compare real venue quotes, apply fees, inspect for honeypot blocks, and return net output without signing or broadcasting.
Instructions
Dry quote for a swap: real venue quotes (KyberSwap/Jupiter/0x), best net-of-fee fill wins. The 402 fee — max(50 bps, $0.50 minimum, the min is a placeholder until the Turnkey bill calibrates it) — is applied AT THE QUOTE LAYER — the response shows amount_out_gross, fee, and amount_out_net separately, and amount_out_net is what a fill would deliver. BLOCKED (honeypot) tokens get no quote, ever — the token being bought is inspected before quoting. amount_in_usd is the server-side USD valuation the auto-approve threshold is enforced against. Quotes live 60 seconds and fill at most once; swap_execute rejects stale or consumed quotes. No signing, no broadcasting — quoting is always safe. For ETH use token 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE on EVM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain: ethereum, base, arbitrum, bsc, solana, ink, robinhood (ink quotes via 0x when ZEROEX_API_KEY is set) | |
| amount | Yes | Human decimal input amount, e.g. "100" | |
| token_in | Yes | Input token address | |
| symbol_in | Yes | Input symbol, e.g. USDC | |
| token_out | Yes | Output token address | |
| trader_id | Yes | ||
| symbol_out | Yes | Output symbol, e.g. WETH | |
| decimals_in | Yes | ||
| decimals_out | Yes |