← All endpoints
api.tollboothswap.xyz swap build
https://api.tollboothswap.xyz/v1/swap/build
payable
Non-custodial swap execution for AI agents on 8 chains: Solana (Jupiter) plus Base, Ethereum, Arbitrum, Polygon, Optimism, BSC and Avalanche (0x). Pay a small toll to get an unsigned, fee-inclusive swap transaction and an HMAC-signed receipt for auditing. Comparison-shop first with free indicative quotes at GET /v1/quote (same parameters, no taker required). You sign and submit with your own walle
We sent a real
POST request to this endpoint and it
answered 402 with payment requirements we could parse.
- Price
- $0.005
- Network
- base
- Pay to
- 0xb6eBBbcE1537082a20B891AEec75DBC32b825cc0
- Spec dialect
- v2 (declares x402Version 2)
- Transport
- PAYMENT-REQUIRED header
- HTTP method
- POST
- Response latency
- 676 ms
- Payment options
- 2 usable of 2
- Last checked
- 2026-08-10T09:09:46.484Z (1d ago)
- Category
- finance-crypto
Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fapi.tollboothswap.xyz%2Fv1%2Fswap%2Fbuild"