Quote swap
quote_swapUse for a DEX swap quote with a ready unsigned transaction: best route from Velora (ParaSwap), KyberSwap as fallback, on Base, Arbitrum, Ethereum, Optimism, Polygon, BNB Chain. Returns the exact paid x402 request for your input (GET /quote/swap, $0.002 per call), with a link to the full schema; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. With a P0 access key (header Authorization: Bearer p0k_…, buy one at https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/keys/buy?usd=5) this tool makes the paid call itself and returns the data, deducting the listed price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | token to buy: symbol or 0x address | |
| from | Yes | token to sell: symbol (USDC, WETH, ETH...) or 0x address | |
| chain | Yes | base, arbitrum, ethereum, optimism, polygon or bsc (or chain id) | |
| taker | Yes | wallet that will sign and send the swap | |
| amount | Yes | amount to sell in base units (10 USDC = 10000000) | |
| to_decimals | No | only for tokens P0 does not know | |
| slippage_bps | No | max slippage in basis points (50 = 0.5%). The alias 'slippage' is read as basis points too (Velora's unit); a 'slippage' below 10 is refused as ambiguous | |
| from_decimals | No | only for tokens P0 does not know |