{"uid":"cap_ragYQ2ulpiTKdUPMu00HH","slug":"hostdefi-evm-swap-price-quote-66f896ca","name":"HostDeFi EVM Swap Price Quote","description":"HostDeFi is a Solana DEX with a free token safety scanner. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, 1% flat fee.","url":"https://rpc.hostdefi.com/api/v1/x402/swap/evm/price?utm_source=zero.xyz","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_NV1X7l24l0SdaPx639f_P","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 an estimated price quote for swapping tokens on EVM chains, given a sell token, buy token, chain ID, and sell amount.","exampleAgentPrompt":"What's the estimated buy amount if I sell 1000000 USDC (address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for ETH on Base (chain ID 8453) right now?","exampleUseCases":[{"title":"Pre-trade swap rate check on Base","prompt":"Before I swap, can you tell me how much WETH I'd get if I sell 500 USDC on Base chain (chain ID 8453)? Sell token is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, buy token is native."},{"title":"Cross-token price comparison on Arbitrum","prompt":"I want to know how many ARB tokens I'd receive if I sold 2000000000000000000 wei of ETH (native) on Arbitrum (chain ID 42161) — what's the estimated buy amount?"},{"title":"DeFi bot pre-execution quote","prompt":"Check the current swap estimate for buying 0x6B175474E89094C44Da98b954EedeAC495271d0F DAI with 1000000 USDC on Optimism (chain ID 10) so I can decide whether to execute the trade."}],"resultDescription":"Returns a JSON object with ok status, plan metadata, a boolean estimate flag indicating the quote is an approximation, the estimated buyAmount in the buy token's base units, the minimum guaranteed buyAmount, and optionally the native token USD price.","failureModes":["Missing required query parameters (chainId, buyToken, sellToken, sellAmount) result in a 400 error","Unsupported chain ID returns an error or empty response","Invalid token address format causes a bad request response","Network congestion or DEX liquidity issues may result in degraded or unavailable quotes","Payment of 0.002 USDC via x402 protocol required; missing payment header returns 402"],"whenToPreferThis":"Choose this endpoint when you need a fast, non-executing price estimate for an EVM token swap across any of the 7 supported chains without committing to a transaction. It is ideal for pre-trade checks, portfolio simulations, or arbitrage scanning. Prefer this over on-chain RPC calls when you want a simple REST-based quote with no KYC and cross-chain support in one API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:39:58.661Z","isFirstParty":false,"canonicalSlug":"hostdefi-evm-swap-price-quote-66f896ca"}