{"uid":"cap_XnvTOOV2OhAhEoSdKSofg","slug":"agent-proxy-alchemy-com-ba46c303","name":"Alchemy Swap Allowance Holder Indicative Price","description":"Get the indicative price for a swap using Allowance Holder to set allowances","url":"https://agent-proxy.alchemy.com/v1/x402/86b0ec6d1d0b3dc0/swap-allowance-holder-price/","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":{"type":"object","required":["gas","zid","fees","mode","route","issues","buyToken","gasPrice","buyAmount","sellToken","sellAmount","blockNumber","minBuyAmount","tokenMetadata","allowanceTarget","totalNetworkFee","liquidityAvailable"],"properties":{"gas":{"type":"string"},"zid":{"type":"string"},"fees":{"type":"object","required":["gasFee","zeroExFee","integratorFee","integratorFees"],"properties":{"gasFee":{"type":"null"},"zeroExFee":{"type":"object","required":["type","token","amount"],"properties":{"type":{"type":"string"},"token":{"type":"string"},"amount":{"type":"string"}}},"integratorFee":{"type":"null"},"integratorFees":{"type":"null"}}},"mode":{"type":"string"},"route":{"type":"object","required":["fills","tokens"],"properties":{"fills":{"type":"array","items":{"type":"object","required":["to","from","source","proportionBps"],"properties":{"to":{"type":"string"},"from":{"type":"string"},"source":{"type":"string"},"proportionBps":{"type":"string"}}}},"tokens":{"type":"array","items":{"type":"object","required":["symbol","address"],"properties":{"symbol":{"type":"string"},"address":{"type":"string"}}}}}},"issues":{"type":"object","required":["balance","allowance","invalidSourcesPassed","simulationIncomplete"],"properties":{"balance":{"type":"object","required":["token","actual","expected"],"properties":{"token":{"type":"string"},"actual":{"type":"string"},"expected":{"type":"string"}}},"allowance":{"type":"null"},"invalidSourcesPassed":{"type":"array","items":{"type":"unknown"}},"simulationIncomplete":{"type":"boolean"}}},"buyToken":{"type":"string"},"gasPrice":{"type":"string"},"buyAmount":{"type":"string"},"sellToken":{"type":"string"},"sellAmount":{"type":"string"},"blockNumber":{"type":"string"},"minBuyAmount":{"type":"string"},"tokenMetadata":{"type":"object","required":["buyToken","sellToken"],"properties":{"buyToken":{"type":"object","required":["buyTaxBps","sellTaxBps","transferTaxBps"],"properties":{"buyTaxBps":{"type":"string"},"sellTaxBps":{"type":"string"},"transferTaxBps":{"type":"string"}}},"sellToken":{"type":"object","required":["buyTaxBps","sellTaxBps","transferTaxBps"],"properties":{"buyTaxBps":{"type":"string"},"sellTaxBps":{"type":"string"},"transferTaxBps":{"type":"string"}}}}},"allowanceTarget":{"type":"string"},"totalNetworkFee":{"type":"string"},"liquidityAvailable":{"type":"boolean"}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"chainId":1,"buyToken":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","sellToken":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","sellAmount":"1000000000000000000"}}},"response":{"gas":"599197","zid":"0xe5ca5a3d1b2b9935767641fc","fees":{"gasFee":null,"zeroExFee":{"type":"volume","token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","amount":"2496468"},"integratorFee":null,"integratorFees":null},"mode":"exact-in","route":{"fills":[{"to":"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599","from":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","source":"Uniswap_V3","proportionBps":"10000"},{"to":"0xdac17f958d2ee523a2206206994597c13d831ec7","from":"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599","source":"Uniswap_V3","proportionBps":"10000"},{"to":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","from":"0xdac17f958d2ee523a2206206994597c13d831ec7","source":"Metric","proportionBps":"10000"}],"tokens":[{"symbol":"WETH","address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"},{"symbol":"WBTC","address":"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"},{"symbol":"USDT","address":"0xdac17f958d2ee523a2206206994597c13d831ec7"},{"symbol":"USDC","address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}]},"issues":{"balance":{"token":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","actual":"2449954955111606","expected":"1000000000000000000"},"allowance":null,"invalidSourcesPassed":[],"simulationIncomplete":false},"buyToken":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","gasPrice":"167597715","buyAmount":"1661813535","sellToken":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","sellAmount":"1000000000000000000","blockNumber":"25277499","minBuyAmount":"1645170435","tokenMetadata":{"buyToken":{"buyTaxBps":"0","sellTaxBps":"0","transferTaxBps":"0"},"sellToken":{"buyTaxBps":"0","sellTaxBps":"0","transferTaxBps":"0"}},"allowanceTarget":"0x0000000000001ff3684f28c67538d4d072c22734","totalNetworkFee":"100424048034855","liquidityAvailable":true}},"exampleRequest":{"chainId":1,"buyToken":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","sellToken":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","sellAmount":"1000000000000000000"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_9hpx7W5WNUu8NviopNJGm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an indicative (non-binding) price quote for a token swap using the Allowance Holder contract to manage token allowances","exampleAgentPrompt":"What's the indicative price to swap 1 ETH for USDC right now using the Allowance Holder contract on Alchemy?","exampleUseCases":null,"resultDescription":"Returns an indicative (non-firm) price for the requested token swap, including estimated output amount, exchange rate, and fee breakdown using the Allowance Holder mechanism — useful for previewing a trade before requesting a firm quote.","failureModes":["Unsupported token pair returns an error or empty result","Invalid or missing query parameters result in a 400 bad request","Network congestion may cause stale or unavailable pricing","Insufficient liquidity for the requested swap size","Payment of $0.01 USDC not fulfilled results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a quick, non-binding price estimate for a token swap using the Allowance Holder pattern, before committing to a firm quote or executing a trade. Prefer this over the firm quote endpoint when you just want to preview pricing or show the user an estimate without locking in a rate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:39:17.949Z","isFirstParty":false}