{"uid":"cap_Bn1cNeM3qCIVgcjBO5sGs","slug":"agent-kiosk-defi-swap-cross-chain-bridge-calldata-builder-5de479f8","name":"Agent Kiosk DeFi Swap & Cross-Chain Bridge Calldata Builder","description":"Executable DeFi Swap & Cross-Chain Bridge Action Calldata Builder (LI.FI + ParaSwap): computes best DEX/Bridge route and returns ready-to-sign EVM transaction calldata (to, data, value, gasLimit) on Base, Ethereum, Arbitrum, Polygon, and Optimism.","url":"https://agent-kiosk.vercel.app/v1/defi-swap-quote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string","description":"Amount to swap (human-readable e.g. '10' or atomic units)"},"wallet":{"type":"string","description":"Optional 0x sender wallet address"},"to_chain":{"enum":["base","ethereum","arbitrum","polygon","optimism"],"type":"string"},"to_token":{"type":"string","description":"Destination token symbol (ETH, USDC, AERO, cbBTC) or 0x address"},"from_chain":{"enum":["base","ethereum","arbitrum","polygon","optimism"],"type":"string"},"from_token":{"type":"string","description":"Source token symbol (USDC, ETH, AERO) or 0x address"}}},"responseSchema":{"type":"json","example":{"aggregator":"lifi","action_type":"DEX_SWAP_CALLDATA","to_chain_id":8453,"from_chain_id":8453,"transaction_request":{"to":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","data":"0x...","value":"0x0"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EJY3TxX7FPheKICAPxraI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the optimal DEX/bridge route via LI.FI and ParaSwap and returns ready-to-sign EVM transaction calldata (to, data, value, gasLimit) for token swaps and cross-chain bridges across Base, Ethereum, Arbitrum, Polygon, and Optimism.","exampleAgentPrompt":"Get me the best swap route and ready-to-sign transaction calldata to swap 10 USDC for ETH on Base using my wallet 0xAbc123...","exampleUseCases":[{"title":"Cross-chain bridge for yield farming","prompt":"Build me the transaction calldata to bridge 500 USDC from Ethereum to Arbitrum so I can deposit into a yield pool — my wallet is 0xDead...Beef."},{"title":"Single-chain DEX swap on Polygon","prompt":"I want to swap 100 USDC for MATIC on Polygon — give me the best route and the signed-ready calldata so I can execute it with my wallet 0x1234...5678."},{"title":"Automated bot token rebalance on Base","prompt":"My rebalancing bot needs to swap 50 AERO for cbBTC on Base — fetch the optimal LI.FI route and return the full transaction calldata including gas limit."}],"resultDescription":"Returns a JSON object containing the aggregator used (e.g. 'lifi'), the action type (DEX_SWAP_CALLDATA or bridge variant), source and destination chain IDs, and a transaction_request object with the contract address (to), encoded calldata (data), ETH value (value), and gas limit — everything needed to sign and broadcast the transaction on-chain.","failureModes":["Unsupported token pair or low liquidity — no route found, returns error","Invalid chain enum value — returns validation error","Amount too small for bridge minimum — route unavailable","Wallet address malformed — validation error","Aggregator API (LI.FI/ParaSwap) temporarily unavailable — upstream timeout","Insufficient gas estimation data — gasLimit may be absent"],"whenToPreferThis":"Choose this endpoint when an AI agent or automated workflow needs executable, ready-to-sign EVM transaction calldata for token swaps or cross-chain bridges — not just price quotes. It is ideal when you need multi-aggregator best-routing (LI.FI + ParaSwap) across Base, Ethereum, Arbitrum, Polygon, and Optimism without building your own aggregator integration. Prefer it over raw DEX APIs when you need a single endpoint that handles both same-chain swaps and cross-chain bridges.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:42:34.029Z","isFirstParty":false,"canonicalSlug":"agent-kiosk-defi-swap-cross-chain-bridge-calldata-builder-5de479f8"}