{"uid":"cap_2FPM9qKtsv7TddINnhi2c","slug":"hostdefi-evm-swap-quote-6581c138","name":"HostDeFi EVM Swap Quote","description":"HostDeFi is a non-custodial Solana DEX. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, no accounts, no custody.","url":"https://hostdefi.com/api/v1/x402/swap/evm/quote","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"],"type":"string"},"queryParams":{"type":"object","properties":{"ref":{"type":"string","description":"Optional referrer 0x… address (splits the platform fee)"},"taker":{"type":"string","description":"The wallet (0x…) that will sign and broadcast the returned transaction"},"chainId":{"type":"string","description":"EVM chain id (e.g. 8453 = Base, 1 = Ethereum)"},"buyToken":{"type":"string","description":"'native' or the 0x… address of the token being bought"},"sellToken":{"type":"string","description":"'native' or the 0x… address of the token being sold"},"sellAmount":{"type":"string","description":"Integer amount in the sell token's base units"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tx":{"to":"0x…","data":"0x…","value":"0x…"},"meta":{"plan":"x402"},"feeMode":"forwarder","buyAmount":"…","gasEstimate":"…","minBuyAmount":"…","allowanceTarget":"0x…"}},"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_WDNWzhhLMD3Q0C0KdWuDm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a best-route EVM token swap quote with a ready-to-sign transaction object for a given chain, sell token, buy token, and amount.","exampleAgentPrompt":"Get me a swap quote to sell 1000000 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for native ETH on Ethereum mainnet (chain ID 1) using my wallet 0xAbCd...1234 — no KYC, just the best route and the transaction I need to sign.","exampleUseCases":[{"title":"Arbitrage bot price check","prompt":"Check the best quote to swap 500 USDC for WETH on Base (chain ID 8453) from my wallet 0xDead...Beef — I need the buy amount and gas estimate to decide if the arb is worth executing."},{"title":"DeFi portfolio rebalancing","prompt":"I want to sell 2000000000 USDC base units for native ETH on Ethereum (chain ID 1) from wallet 0x1234...5678 — give me the swap quote with the transaction data so I can sign and broadcast it myself."},{"title":"Agent-driven token acquisition","prompt":"Quote me the best route to buy the token at 0x6B175474E89094C44Da98b954EedeAC495271d0F using 0.5 ETH (native) on chain 8453 from wallet 0xAaBb...CcDd — return the calldata and minimum buy amount."}],"resultDescription":"Returns a JSON object with ok=true, a tx object containing the to address, calldata (data), and value needed to broadcast the swap, plus metadata including the plan, feeMode (forwarder), estimated buyAmount, minBuyAmount (after slippage), gasEstimate, and the allowanceTarget for ERC-20 approvals.","failureModes":["Unsupported chainId returns an error or empty route","Invalid or unrecognized token address returns a routing failure","sellAmount of zero or below minimum returns a quote error","Insufficient liquidity for the pair returns no viable route","Missing required parameters (taker, sellToken, buyToken, sellAmount) returns a 400-style error","Payment not fulfilled (x402) results in 402 response before quote is returned"],"whenToPreferThis":"Use this endpoint when you need a non-custodial, no-KYC EVM swap quote with ready-to-sign transaction calldata across multiple EVM chains (Base, Ethereum, and others). Prefer it over Solana-specific endpoints when trading ERC-20 or native EVM tokens. Choose it over CEX APIs when the user wants self-custody and no account creation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:44.970Z","isFirstParty":false}