{"uid":"cap_mtMZN19qfNHmnQnC5wzXq","slug":"hostdefi-evm-swap-price-quote-f91d0dcc","name":"HostDeFi EVM Swap Price 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/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"],"type":"string"},"queryParams":{"type":"object","properties":{"chainId":{"type":"string","description":"EVM chain id (e.g. 8453 = Base)"},"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,"meta":{"plan":"x402"},"estimate":true,"buyAmount":"…","nativeUsd":null,"minBuyAmount":"…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-6R-omJ8vYTXZgy8r9TM_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 price quote for swapping one EVM token for another across 7 supported chains, without executing the swap.","exampleAgentPrompt":"What's the best price I'd get swapping 500 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for ETH (native) on Base (chain ID 8453) right now?","exampleUseCases":[{"title":"Pre-trade swap cost estimation","prompt":"Before I execute anything, tell me how much WBTC I'd receive if I sell 2 ETH (native) on Arbitrum — chain ID 42161 — buying WBTC at 0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f. Just give me the quote, don't do the swap."},{"title":"Cross-chain arbitrage price check","prompt":"Check the swap price on Polygon (chain ID 137) for selling 10,000 USDC (0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174) to get MATIC (native) — I want to compare it to what I'm seeing elsewhere before I decide where to trade."},{"title":"DeFi agent portfolio rebalancing preview","prompt":"I want to rebalance my portfolio — give me a price estimate for swapping 0.5 ETH (native) into USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Base (chain ID 8453) so I can see the expected output before committing."}],"resultDescription":"Returns a JSON object with ok status, the estimated buyAmount (in the buy token's base units), minBuyAmount (accounting for slippage), nativeUsd (USD value if available), and an estimate flag indicating this is a price preview rather than an executed transaction.","failureModes":["Unsupported chainId returns an error or empty response","Invalid token contract address (non-0x or wrong format) causes a bad request","sellAmount of zero or non-integer string may fail validation","Token pair with no available liquidity route returns no quote","Network congestion may cause stale or unavailable pricing data"],"whenToPreferThis":"Use this endpoint when you need a non-binding EVM swap price quote across any of the 7 supported chains before committing to a trade. Prefer it over on-chain RPC calls when you want aggregated best-route pricing without managing wallet connections, over Solana-specific endpoints when trading EVM assets, and when you need a quick price check with no KYC or account requirements. Ideal for pre-trade analysis, arbitrage comparison, and portfolio rebalancing previews.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:34:59.587Z","isFirstParty":false}