{"uid":"cap_0YKhEuhJLvkhhv59oea4x","slug":"api-w3-ipfs-xyz-3f29764e","name":"W3-IPFS Intent-to-Swap Transaction Converter","description":"Convert natural language intent to swap transaction","url":"https://api.w3-ipfs.xyz/x402/intent-to-swap-tx","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ay-40xi9i3mwk16rNib9l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a natural language swap intent (e.g. 'swap 1 ETH for USDC') into an executable blockchain swap transaction","exampleAgentPrompt":"Turn this into a swap transaction I can sign: 'swap 0.5 ETH for USDC using my wallet 0xAbC123...'.","exampleUseCases":[{"title":"Convert spoken trade to transaction","prompt":"I just told my assistant 'swap 50 USDC for DAI from my wallet 0x1234...abcd' — can you turn that into an actual transaction I can sign and broadcast?"},{"title":"DeFi swap from plain English","prompt":"Build me a ready-to-sign swap transaction from this: 'exchange 2 ETH for as much WBTC as possible using wallet 0xDEAD...BEEF'."},{"title":"Automate portfolio rebalancing swap","prompt":"I want to rebalance my portfolio — take my description 'swap 500 USDC for ETH' and generate the blockchain transaction I need to execute it on-chain."}],"resultDescription":"Returns an executable swap transaction payload derived from the natural language swap intent, including token pair, amounts, and transaction data ready for signing and broadcasting.","failureModes":["Ambiguous intent with unclear token names or amounts returns a parsing error","Unsupported token pair returns an error indicating the swap cannot be constructed","Missing wallet address or recipient details may cause transaction generation to fail","Malformed or nonsensical natural language input returns a bad request error","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need to bridge the gap between a user's plain-English swap request and an actual on-chain swap transaction, especially in AI agent workflows where the user describes their trade intent conversationally rather than specifying raw transaction parameters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T23:27:42.157Z","isFirstParty":false}