{"uid":"cap_0HJSyrGdrwFNZXjOWyXLO","slug":"hostdefi-evm-swap-quote-eb87c717","name":"HostDeFi EVM Swap 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/quote?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":{"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_rN9qyHbAA6fNLsRRsEe94","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 swap quote and ready-to-sign transaction object for exchanging tokens on a specified EVM chain","exampleAgentPrompt":"Get me a swap quote on HostDeFi to sell 500000000 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for native ETH on Ethereum (chain 1) using my wallet 0xAbCd1234abcd1234abcd1234abcd1234abcd1234.","exampleUseCases":[{"title":"Best-route USDC to ETH swap on Base","prompt":"Get me a quote to swap 100 USDC (0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA) for native ETH on Base (chain 8453) from my wallet 0xAbCd1234abcd1234abcd1234abcd1234abcd1234 — I want the transaction data ready to sign."},{"title":"ERC-20 to ERC-20 arbitrage quote","prompt":"Can you fetch a HostDeFi swap quote to sell 1000000000000000000 WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) for DAI (0x6B175474E89094C44Da98b954EedeAC495271d0F) on Ethereum mainnet (chain 1) using wallet 0xDeadBeef00000000000000000000000000000001?"},{"title":"Referred fee-split token purchase on Polygon","prompt":"Get me a swap quote on HostDeFi to buy MATIC (native) by selling 50000000 USDT (0xc2132D05D31c914a87C6611C10748AEb04B58e8F) on Polygon (chain 137) from wallet 0x1234abcd1234abcd1234abcd1234abcd1234abcd, and include my referrer address 0xREF0000000000000000000000000000000000001 to split the fee."}],"resultDescription":"Returns a JSON object containing a ready-to-broadcast EVM transaction (to, data, value fields), the expected buy amount, minimum buy amount with slippage, gas estimate, allowance target contract address, fee mode, and a meta plan identifier. The agent can pass this transaction directly to a wallet for signing and broadcasting.","failureModes":["Invalid or unsupported chainId returns an error response","Unrecognized token address (buyToken or sellToken) causes routing failure","Insufficient liquidity for the requested sellAmount results in no route found","Missing required parameters (taker, chainId, buyToken, sellToken, sellAmount) returns 400-style error","Payment of 0.01 USDC x402 fee not fulfilled results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need an EVM-chain token swap quote with transaction calldata ready for wallet signing, especially across Base, Ethereum, or other supported EVM chains. It aggregates routing for best price. Prefer it when operating on EVM chains (not Solana), when you need the raw transaction object rather than just a price, and when a flat 1% fee with no KYC is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:48:41.448Z","isFirstParty":false,"canonicalSlug":"hostdefi-evm-swap-quote-eb87c717"}