DEX swap quote
swap_quoteIndicative UniswapV2 swap quote from live on-chain reserves: amount out, execution price, and price impact — what the trade will actually cost before you sign it. Paid: call without x_payment to receive this call's exact terms (amount, asset, network), sign them, then call again with x_payment. The free pricing tool lists every price at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Which chain to quote on. | base |
| amount | No | Amount of token_in to sell. | |
| token_in | Yes | Address of the token being sold. | |
| token_out | Yes | Address of the token being bought. | |
| x_payment | No | Optional signed x402 payment payload (base64, what the X-PAYMENT header carries). Omit to receive the exact payment terms; sign them (e.g. @x402/fetch) and call again with this argument to settle and get the data. |