{"uid":"cap_DJwA2GplnOiVPULe97ddw","slug":"tollbooth-swap-builder-7776c369","name":"Tollbooth Swap Builder","description":"Non-custodial swap execution for AI agents on Solana and Base. Pay a small toll to get an unsigned, fee-inclusive swap transaction routed via Jupiter (Solana) or 0x (Base), plus 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 wallet - Tollbooth never touches keys or funds.","url":"https://tollbooth-production-3845.up.railway.app/v1/swap/build","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["chain","inputToken","outputToken","amount","taker"],"properties":{"chain":{"enum":["solana","base","ethereum","arbitrum","polygon","optimism","bsc","avalanche"],"type":"string","description":"Chain to swap on"},"taker":{"type":"string","description":"Wallet address that will sign and send the swap"},"amount":{"type":"string","description":"Sell amount as an integer string in the input token's base units"},"inputToken":{"type":"string","description":"Token being sold: mint address (solana) or ERC-20 address (EVM chains)"},"outputToken":{"type":"string","description":"Token being bought: mint address (solana) or ERC-20 address (EVM chains)"},"slippageBps":{"type":"integer","description":"Max slippage in basis points (default 100)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["chain","transaction","quote","receipt"],"properties":{"chain":{"enum":["solana","base","ethereum","arbitrum","polygon","optimism","bsc","avalanche"],"type":"string"},"quote":{"type":"object","properties":{"feeBps":{"type":"integer"},"inAmount":{"type":"string"},"outAmount":{"type":"string"},"feeApplied":{"type":"boolean"}}},"receipt":{"type":"object","properties":{"id":{"type":"string"},"signature":{"type":"string"}},"description":"HMAC-signed audit receipt for this paid build"},"transaction":{"type":"object","description":"Unsigned transaction for the taker wallet to sign and submit"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t9DNI9H0upq8pOrYmuNj1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Builds an unsigned, fee-inclusive swap transaction for Solana (via Jupiter) or Base (via 0x) that the agent signs and submits with its own wallet","exampleAgentPrompt":"Build me an unsigned swap transaction to exchange 100 USDC for SOL on Solana, routed through Jupiter, using my wallet address 7Xqk...AbCd — I'll sign and submit it myself.","exampleUseCases":[{"title":"Agent rebalancing portfolio on Solana","prompt":"My trading agent needs to swap 500 USDC into SOL on Solana right now — build the unsigned Jupiter-routed transaction so the agent can sign and broadcast it with its own wallet."},{"title":"Base DeFi swap with audit trail","prompt":"Build me a swap transaction to exchange 0.5 ETH for USDC on Base via 0x routing, and include the HMAC receipt so I have an auditable record — my wallet is 0xA1b2...C3d4."},{"title":"Pre-trade quote comparison before execution","prompt":"Before I commit, build me the actual unsigned swap transaction for 200 USDT to WETH on Base so I can see the full fee-inclusive cost and routing details before my agent signs it."}],"resultDescription":"Returns an unsigned swap transaction payload (ready for the agent to sign and submit with its own wallet), a full fee breakdown, routing details (Jupiter or 0x path), and an HMAC-signed receipt for auditing purposes.","failureModes":["Insufficient liquidity for the requested token pair returns an error with no transaction built","Unsupported chain or token address returns a 400-level validation error","Slippage tolerance exceeded causes transaction build failure","Invalid taker wallet address format returns a validation error","Network congestion or downstream Jupiter/0x API outage causes a 5xx timeout","Amount too small to cover fees returns an error indicating minimum thresholds"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to execute a non-custodial token swap on Solana or Base without surrendering private keys — especially when you need an auditable HMAC receipt, want best-execution routing via Jupiter or 0x, and will sign/submit the transaction yourself. Prefer this over custodial swap APIs or on-chain aggregators you'd call directly when agent-friendly unsigned transaction construction and fee transparency are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:32:58.552Z","isFirstParty":false}