# AmanChain Arbitrage Spread Scan

> AmanChain Arbitrage Spread Scan is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.012441/call, status unknown (last checked 2026-09-14).

Scans live on-chain DEX pools for arbitrage spread opportunities using real-time consensus state, paid per call via x402 in USDC.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-arb-scan
- Price: $0.012441/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-arbitrage-spread-scan-655c2030
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f-2H-4vRQYxnA8JVDb9hk

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 amanchain-arbitrage-spread-scan-655c2030 -d '<json body>'
```

Example prompt: Can you scan the on-chain DEX pools right now and tell me if there are any profitable arbitrage spreads or price discrepancies I should know about?

## When to prefer this

Choose this endpoint when you need real-time, deterministic on-chain arbitrage spread data executed against live block state — not estimated or cached. Ideal for trading bots or DeFi agents that need trustworthy spread scans without an API key or account setup, and are willing to pay per call via x402 in USDC. Prefer over centralized price APIs when on-chain accuracy and trustlessness matter.

## Known failure modes

- Invalid or malformed request string returns an error response
- Payment failure via x402 if USDC balance on Base is insufficient
- Node may return stale or no data if chain is experiencing reorg or lag
- Unrecognized serviceId returns a service-not-found error
- Network timeout if the worker or underlying node is unreachable

## How this service works

Cross-pool arbitrage scanner — detects live price spreads between AMM pools; DeFi arbitrage opportunity feed. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-arb-scan","request":"<input>"}.

## Output

Returns a structured response containing current arbitrage spread data derived from live on-chain consensus state, including price differentials across DEX pools, token pair comparisons, and potential profit margins for identified spread opportunities.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-arbitrage-spread-scan-655c2030/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
