# Starchild Relay — 1inch Swap Quote (Ethereum)

> Starchild Relay — 1inch Swap Quote (Ethereum) is a paid API for AI agents from 5108-data-api-proxy.community.iamstarchild.com, paid per call via x402, $0.00001/call, status unknown (last checked 2026-09-14).

Returns a DEX swap quote on Ethereum mainnet via the 1inch v6 aggregator, proxied through the Starchild x402 paywall

## Facts

- Endpoint: POST https://5108-data-api-proxy.community.iamstarchild.com/oneinch/swap/v6.0/1/quote
- Price: $0.00001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/starchild-relay-1inch-swap-quote-ethereum-a5b41e5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WabCip3X259VSt9basggq

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 starchild-relay-1inch-swap-quote-ethereum-a5b41e5c -d '<json body>'
```

Example prompt: How much WETH would I get if I swap 5000 USDC on Ethereum right now — use the 1inch v6 aggregator to get me the best available quote, with source token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and destination 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 for amount 5000000000.

## When to prefer this

Choose this endpoint when you need a real-time swap quote specifically from the 1inch v6 aggregator on Ethereum mainnet (chain ID 1), accessed via a micropayment x402 paywall requiring only $0.00001 USDC per call. Prefer this over direct 1inch API access when you want consolidated billing across multiple data sources through the Starchild Relay, or when you lack a direct 1inch API key. This is a read-only quote endpoint — it does not execute a trade.

## Known failure modes

- 402 Payment Required — no or invalid X-PAYMENT header provided; agent must complete x402 payment challenge
- 400 Bad Request — invalid token address format or unsupported token pair
- 422 Unprocessable Entity — amount is zero or below minimum swap threshold
- 503 Service Unavailable — upstream 1inch API is temporarily unreachable
- Token pair has insufficient liquidity — 1inch returns no valid route

## How this service works

All-in-one reputable data source for AI agents and developers. Crypto spot/OHLC, derivatives funding rates, open interest, liquidations, forex, commodities, indices, social sentiment, DeFi protocols, and more — 17+ upstream data sources behind a single x402 paywall.

Usage: Send requests to any proxied path (e.g. GET /coingecko/api/v3/...). Unauthenticated requests receive a 402 challenge with payment instructions. Include X-PAYMENT header with a valid signature to access data.

## Output

A JSON object from the 1inch v6 /quote endpoint containing the estimated destination token amount, the optimal routing path across DEX liquidity sources, estimated gas cost, and price impact for the requested swap on Ethereum mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dst": {
   "type": "string",
   "description": "Destination token address"
  },
  "src": {
   "type": "string",
   "description": "Source token address"
  },
  "amount": {
   "type": "string",
   "description": "Amount in the source token's smallest unit"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/starchild-relay-1inch-swap-quote-ethereum-a5b41e5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 5108-data-api-proxy.community.iamstarchild.com](https://www.zero.xyz/host/5108-data-api-proxy.community.iamstarchild.com/llms.txt)
