For the complete documentation index, see llms.txt. This page is also available as Markdown.

Swap Tokens

Outline:

  • Quote first with POST /api/swap/quote — slippage, fee preview, expected out.

  • Execute with POST /api/swap/execute — runs through Router, ShredPay sponsors gas.

  • Worked example: 100 USDC → ETH on Base.

  • Handling slippage failures and re-quoting.

  • Why this is Base-only today (Router availability).

See Gas Model for the sponsorship rules.

Last updated