# AmanChain Stablecoin Health Monitor

> AmanChain Stablecoin Health Monitor is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.009331/call, status unknown (last checked 2026-09-15).

Returns live on-chain health metrics for stablecoins by querying AmanChain node consensus state, including pool balances and peg status.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-stable-health
- Price: $0.009331/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-stablecoin-health-monitor-77417095
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zlE4oMmSq0q61TJk6ncsL

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-stablecoin-health-monitor-77417095 -d '<json body>'
```

Example prompt: Can you check the current on-chain health of stablecoins on AmanChain — I want to know if the peg is holding and what the pool balances look like right now?

## When to prefer this

Use this endpoint when you need live, deterministic, on-chain stablecoin health data from the AmanChain network specifically — including peg stability, pool balances, and reserve metrics sourced directly from consensus state. Prefer this over off-chain price feeds or aggregators when on-chain verifiability and AmanChain-native data matter. It is pay-per-call with no API key, making it suitable for agents that need occasional health checks without subscription overhead.

## Known failure modes

- Payment not settled — x402 payment required before response is returned
- Invalid or missing serviceId field — returns error if 'aman-stable-health' is not specified
- Node sync lag — response may reflect slightly delayed consensus state if node is catching up
- Malformed request body — missing 'request' or 'serviceId' fields returns a validation error
- Network timeout — Cloudflare Worker or AmanChain node may time out under heavy load

## How this service works

Stablecoin health monitor — collateral backing percent, redeemability and freeze status for every AMT-20 stablecoin on the chain. 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-stable-health","request":"<input>"}.

## Output

Returns a JSON response containing live on-chain stablecoin health data derived from AmanChain consensus state, including peg status, pool balances, reserve levels, and overall health indicators for tracked stablecoins.

## 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-stablecoin-health-monitor-77417095/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)
