{"uid":"cap_LG1aFSql4ctJU6R4K1BAY","slug":"3route-multichain-swap-quote-api-96b71444","name":"3Route Multichain Swap Quote API","description":"Best-priced crypto token swaps for agents, traders and apps. Pay-per-call quote & swap API via x402/MPP. No API key or subscription.","url":"https://3route.agents.bakingbad.dev/v1/%7BchainId%7D/quote","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["chainId"],"properties":{"chainId":{"enum":["4663","42793","128064"],"type":"string","example":"4663","pattern":"^[0-9]+$","description":"Chain ID for the operation."}},"additionalProperties":false},"queryParams":{"type":"object","required":["src","dst","amount"],"properties":{"dst":{"type":"string","example":"0x5fc5360d0400a0fd4f2af552add042d716f1d168","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address of the token being bought; take one from the token-list operation for the selected chain, or use the zero address, or the case-insensitive sentinel 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, for the chain's native asset."},"fee":{"type":"number","default":0,"maximum":3,"minimum":0},"src":{"type":"string","example":"0x0000000000000000000000000000000000000000","pattern":"^0x[0-9a-fA-F]{40}$","description":"Address of the token being sold; use the zero address, or the case-insensitive sentinel 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, for the chain's native asset"},"amount":{"type":"string","example":"1000000000000000000","pattern":"^[0-9]+$","description":"Positive amount of src to sell in smallest units, as an integer string."},"gasPrice":{"type":"string","example":"1000000000","pattern":"^[0-9]+$"},"protocols":{"type":"string"},"includeProtocols":{"type":"boolean","default":false},"excludedProtocols":{"type":"string"},"includeTokensInfo":{"type":"boolean","default":false},"includeBlockNumber":{"type":"boolean","default":false}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"gas":210000,"dstAmount":"950000","srcAmount":"1000000000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TdF3ccJ8Qu9VHzVclSd_t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a price quote for swapping one token for another on a specified EVM-compatible chain, including estimated destination amount and gas cost.","exampleAgentPrompt":"On Etherlink (chain 42793), quote me a swap of 1 ETH (native asset) for USDC at address 0x5fc5360d0400a0fd4f2af552add042d716f1d168 — give me the estimated output amount and gas cost.","exampleUseCases":[{"title":"Pre-trade price check for DeFi bot","prompt":"Before I execute anything, quote me how much USDC I'd get for selling 500 USDC worth of the native asset on chain 4663 — the destination token is 0x5fc5360d0400a0fd4f2af552add042d716f1d168 and I want to see the gas estimate too."},{"title":"Best route comparison across protocols","prompt":"I want to swap 2000000000000000000 units of the native asset to token 0x5fc5360d0400a0fd4f2af552add042d716f1d168 on Etherlink (chain 42793). Can you get me a quote including which protocols are being used so I can compare routes?"},{"title":"Slippage check before autonomous swap","prompt":"My trading agent is about to sell 1000000000 of token 0x0000000000000000000000000000000000000000 for token 0x5fc5360d0400a0fd4f2af552add042d716f1d168 on chain 128064 — first fetch a quote so I can verify the expected output before signing anything."}],"resultDescription":"A JSON object containing the estimated destination token amount (dstAmount), the source amount confirmed (srcAmount), and the estimated gas units required for the swap. Optionally includes protocol route details, token metadata, and block number depending on query flags.","failureModes":["Invalid or unsupported chainId returns an error — only 4663, 42793, 128064 are supported","Malformed token address (not a valid 0x hex address) causes a 400 validation error","Amount of zero or non-integer amount string causes rejection","Insufficient liquidity for the token pair may return no route found","Payment not provided (x402 protocol) results in 402 Payment Required before quote is returned","Unsupported token pair on the selected chain returns an empty or error response"],"whenToPreferThis":"Use this endpoint when you need a fast, on-demand price quote for token swaps on Etherlink or other supported EVM chains (4663, 42793, 128064) before committing to a transaction. Prefer 3Route over generic price feeds when you need DEX-aggregated routing with gas estimates specifically for EVM chains supported by Baking Bad. It is ideal for agents that need to verify swap economics before signing an unsigned transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:19.091Z","isFirstParty":false}