{"uid":"cap_42mCdvu0Emd2YMJRHVlLb","slug":"agent-proxy-alchemy-com-d5c391ed","name":"Alchemy Agent Proxy - Swap POST Endpoint","description":"sfdsa","url":"https://agent-proxy.alchemy.com/v1/x402/4013ed2b4f50e768/abc-test-123/","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":{"type":"object","required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"tokenIn":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","amountIn":"1000000","slippage":0.5,"tokenOut":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},"type":"http","method":"POST","bodyType":"json"}},"response":{"url":"https://httpbin.org/post","args":{},"data":"{\"tokenIn\":\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\"amountIn\":\"1000000\",\"slippage\":0.5,\"tokenOut\":\"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2\"}","form":{},"json":{"tokenIn":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","amountIn":"1000000","slippage":0.5,"tokenOut":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},"files":{},"origin":"74.220.48.244, 104.23.160.27","headers":{"Host":"httpbin.org","Accept":"*/*","Cf-Ray":"a0a6008efbac150f-PDX","Cdn-Loop":"cloudflare; loops=1","Cf-Ew-Via":"15","Cf-Worker":"agent-proxy.alchemy.com","Cf-Visitor":"{\"scheme\":\"https\"}","User-Agent":"node","Content-Type":"application/json","Content-Length":"148","Sec-Fetch-Mode":"cors","Accept-Encoding":"gzip","Accept-Language":"*","X-Amzn-Trace-Id":"Root=1-6a2b868c-778d6aac67ac090356a7d65f","Cf-Connecting-Ip":"74.220.48.244","Access-Control-Expose-Headers":"PAYMENT-RESPONSE,X-PAYMENT-RESPONSE"}}},"exampleRequest":{"tokenIn":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","amountIn":"1000000","slippage":0.5,"tokenOut":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VRZnVcGnX6MeuAox0_kkT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Proxies HTTP POST/PUT/PATCH requests to Alchemy swap APIs, enabling paid programmatic access to DeFi token swap operations via the x402 payment protocol","exampleAgentPrompt":"Submit a swap transaction to Alchemy's agent proxy — send a POST with a JSON body containing the swap parameters so I can execute a token trade on-chain.","exampleUseCases":null,"resultDescription":"Returns the proxied response from Alchemy's swap API, which may include transaction data, swap confirmation details, or error information depending on the underlying swap endpoint called.","failureModes":["Payment not fulfilled — x402 payment required before request is processed","Invalid body type — must be one of json, form-data, or text","Invalid HTTP method — only POST, PUT, PATCH are accepted","Missing required 'input' field in request body","Underlying Alchemy swap API returns an error (e.g. insufficient liquidity, bad token pair)","Network timeout or proxy connectivity issue"],"whenToPreferThis":"Use this endpoint when you need to programmatically submit write-type swap operations (POST/PUT/PATCH) through Alchemy's agent proxy infrastructure with x402 micropayment billing. Prefer this over direct Alchemy API calls when operating in an agentic context that supports the x402 payment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:33:28.280Z","isFirstParty":false}