{"uid":"cap_KpC0g58Q9yzJOZMGjn3mA","slug":"0x-swap-allowance-holder-firm-quote-33a2072a","name":"0x Swap Allowance Holder Firm Quote","description":"Get the firm quote for a swap using Allowance Holder to set allowances","url":"https://agent.api.0x.org/v1/x402/swap-allowance-holder-quote/%2e%2e%2fswap%2fpermit2%2fquote?utm_source=zero.xyz","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QsC7ho1LEYIJUVN0pVPz1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a firm (executable) swap quote using the Allowance Holder contract to manage token allowances on the 0x protocol","exampleAgentPrompt":"Get me a firm quote from 0x to swap 1 ETH for USDC on Ethereum mainnet using the Allowance Holder — I need the exact amount I'll receive and the transaction data to execute it.","exampleUseCases":[{"title":"Best ETH-to-USDC swap rate","prompt":"I want to swap 2 ETH for USDC — can you get me a firm quote from 0x using the Allowance Holder contract so I know exactly how much USDC I'll receive before I approve and execute?"},{"title":"On-chain arbitrage price check","prompt":"Get me a binding 0x Allowance Holder quote to swap 5000 USDC for WBTC on Ethereum — I need the guaranteed output amount and gas estimate to decide if this trade is worth executing."},{"title":"Portfolio rebalancing token swap","prompt":"I need to rebalance my wallet by swapping 500 LINK for DAI — fetch a firm 0x Allowance Holder quote so I can see the exact exchange rate and set my token allowance before submitting the trade."}],"resultDescription":"A firm, executable swap quote including the exact output token amount, exchange rate, gas estimate, calldata for the swap transaction, the Allowance Holder contract address to approve, and any protocol fees — all guaranteed for a short validity window.","failureModes":["Insufficient liquidity for the requested token pair or amount returns an error or degraded quote","Invalid or unsupported token address returns a 400 bad request","Expired quote if the validity window lapses before execution","Chain ID not supported by 0x Allowance Holder returns an error","Missing required query parameters such as sellToken or buyToken returns a validation error","Payment of $0.01 USDC via x402 protocol required; missing or failed payment returns 402"],"whenToPreferThis":"Choose this endpoint when you need a firm, executable swap quote (not just an indicative price) and want to use the Allowance Holder pattern instead of Permit2 for token approvals. Prefer this over the indicative price endpoint when you are ready to actually execute the swap and need guaranteed transaction data. Use over Permit2 quote when your integration or smart contract flow requires standard ERC-20 allowances rather than EIP-2612 signatures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:30:17.446Z","isFirstParty":false,"canonicalSlug":"0x-swap-allowance-holder-firm-quote-ea89260b"}