{"openapi":"3.1.0","info":{"title":"SML SwapGate","version":"1.0.0","description":"SML SwapGate — one built swap: best route found at quote time, every fee itemized, guaranteed minimum received, unsigned transaction ready to sign. Non-custodial. SwapGate returns the best route found at quote time. A quote is an estimate plus a guaranteed minimum: you receive at least the stated minimum amount or the transaction reverts. SwapGate never takes custody of funds and never sees a private key — it returns an unsigned transaction and your own wallet signs it. No return, price, or execution outcome beyond the stated minimum is promised."},"servers":[{"url":"https://sml-swapgate.timothy-walton45.workers.dev"}],"paths":{"/swap/build":{"get":{"operationId":"buildSwapChallenge","summary":"Payment challenge probe (free): returns the same x402 402 challenge as an unpaid POST — for GET-probing validators; no build is performed","responses":{"402":{"description":"x402 PAYMENT-REQUIRED challenge (x402Version 2, resource object, accepts) — identical to the unpaid POST response"}}},"post":{"operationId":"buildSwap","summary":"Build one swap (paid, $0.01 USDC on Base via x402)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fromChain","fromToken","toChain","toToken","amount","fromAddress"],"properties":{"fromChain":{"type":"string"},"fromToken":{"type":"string"},"toChain":{"type":"string"},"toToken":{"type":"string"},"amount":{"type":"string","description":"integer, smallest unit"},"fromAddress":{"type":"string"},"toAddress":{"type":"string"},"slippageBps":{"type":"integer","default":50},"maxPriceImpactBps":{"type":"integer","default":300}}}}}},"responses":{"200":{"description":"Built swap: route summary, estimated out, guaranteed minimum out, itemized fees, unsigned transaction"},"400":{"description":"Invalid request (validated before settlement when payment is presented)"},"402":{"description":"x402 payment required, or payment unverified/unsettled (fail closed — no routing call made)"},"422":{"description":"No route exists, or price impact above the cap — an explicit refusal; nothing was built"}}}},"/health":{"get":{"operationId":"health","summary":"Free health check","responses":{"200":{"description":"ok"}}}},"/supported":{"get":{"operationId":"supported","summary":"Free: chains the routing engines support (cached live LI.FI data)","responses":{"200":{"description":"chain list + counts"}}}}}}