# HostDeFi EVM Swap Price Quote

> HostDeFi EVM Swap Price Quote is a paid API for AI agents from hostdefi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns a best-route price quote for swapping one EVM token for another across 7 supported chains, without executing the swap.

## Facts

- Endpoint: GET https://hostdefi.com/api/v1/x402/swap/evm/price
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-evm-swap-price-quote-f91d0dcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mtMZN19qfNHmnQnC5wzXq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hostdefi-evm-swap-price-quote-f91d0dcc
```

Example prompt: What's the best price I'd get swapping 500 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for ETH (native) on Base (chain ID 8453) right now?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "meta": {
   "plan": "x402"
  },
  "estimate": true,
  "buyAmount": "…",
  "nativeUsd": null,
  "minBuyAmount": "…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-evm-swap-price-quote-f91d0dcc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hostdefi.com](https://www.zero.xyz/host/hostdefi.com/llms.txt)
