# AmanChain Service Search

> AmanChain Service Search is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.002488/call, status unknown (last checked 2026-09-13).

Search for node-operated on-chain services available on the AmanChain relay, returning matching service listings with metadata

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-service-search
- Price: $0.002488/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-service-search-7d44efcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zl9kya-je7JVYpBmGvKQC

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-service-search-7d44efcc -d '<json body>'
```

Example prompt: Search the AmanChain relay for any on-chain services related to token pricing or wallet balances — I want to see what's available.

## When to prefer this

Use this endpoint when an agent needs to dynamically discover which AmanChain on-chain services exist before deciding which specific service to call. It is the entry point for service registry exploration on AmanChain, especially useful when the exact serviceId is unknown and the agent needs to browse by topic or keyword.

## Known failure modes

- Empty or vague query string may return no results or an overly broad list
- x402 payment not included or insufficient USDC causes payment failure and no response
- Invalid or malformed JSON body results in a 400-level error
- Service registry may not include recently added services if index is not current
- Non-matching keyword returns empty result set without fallback suggestions

## How this service works

Service discovery search — find paid x402 API services by keyword with live per-call prices; API marketplace search. 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-service-search","request":"<input>"}.

## Output

A list of matching on-chain services available on the AmanChain relay, including service IDs, descriptions, pricing, and metadata about each service's capabilities and input/output expectations.

## 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-service-search-7d44efcc/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)
