{"uid":"cap_nfqHolTz8XUwsmeOnavU5","slug":"0x-swap-allowance-holder-firm-quote-d0fbbbd0","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/1?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_ApGDROV8eGdkQrfEd3cHP","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 quote for a token swap using the Allowance Holder contract to manage token approvals","exampleAgentPrompt":"Get me a firm 0x swap quote to trade 1000 USDC for ETH on Ethereum mainnet using the Allowance Holder, so I can see the exact execution price and transaction data before I submit.","exampleUseCases":[{"title":"Executing a large token swap on-chain","prompt":"I want to swap 5000 USDC for WETH on Ethereum — can you get me a firm 0x quote using the Allowance Holder so I know the exact amount I'll receive and the calldata to submit the transaction?"},{"title":"Comparing firm vs indicative swap prices","prompt":"Get me a firm executable quote from 0x for swapping 2 ETH to DAI on Ethereum mainnet using Allowance Holder — I want to see if the firm price matches the indicative quote I got earlier."},{"title":"Automating DeFi rebalancing with guaranteed prices","prompt":"My portfolio rebalancer needs to sell 10000 USDC worth of WBTC into ETH on Ethereum — fetch a firm 0x Allowance Holder quote so the bot can verify slippage is within 0.5% before executing."}],"resultDescription":"Returns a firm, time-limited executable quote including the exact output token amount, swap price, gas estimate, transaction calldata, and any required Allowance Holder approval data needed to submit the swap on-chain.","failureModes":["Insufficient liquidity for the requested token pair or amount returns an error or degraded quote","Expired quote if too much time passes between fetching and submitting the transaction","Invalid token addresses or unsupported pairs return 400 bad request","Taker address not provided may result in incomplete calldata","Network congestion may cause price to be unavailable momentarily","Slippage tolerance too tight may result in no valid route found"],"whenToPreferThis":"Use this endpoint when you need a binding, executable swap quote rather than an indicative estimate — specifically when you intend to actually submit the transaction on-chain. Prefer this over the indicative price endpoint when you need calldata and Allowance Holder approval details. Choose this over direct DEX calls when you want 0x's DEX aggregation to optimize the route across multiple liquidity sources on Ethereum mainnet (chain ID 1).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:30:26.012Z","isFirstParty":false,"canonicalSlug":"0x-swap-allowance-holder-firm-quote-ea89260b"}