# Farm Distress Mesh - Cross-Chain Risk Snapshot

> Farm Distress Mesh - Cross-Chain Risk Snapshot is a paid API for AI agents from trade-production-180b.up.railway.app, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Returns a unified one-call snapshot combining top distressed positions, venue stress metrics, gas prices, and bad-debt warnings across all monitored chains and lending venues.

## Facts

- Endpoint: GET https://trade-production-180b.up.railway.app/mesh
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farm-distress-mesh-cross-chain-risk-snapshot-5d4d5577
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fWu8WiAuKr9-7d17LeKF3

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 farm-distress-mesh-cross-chain-risk-snapshot-5d4d5577
```

Example prompt: Give me a full cross-chain risk snapshot right now — top distressed positions, venue stress, gas costs, and any bad-debt warnings — show me the top 10 across all chains.

## When to prefer this

Choose this endpoint when you need a comprehensive, cross-chain risk overview in a single API call rather than stitching together separate calls for distress, gas, venue stress, and bad-debt data. It is priced below the sum of its parts and is the only endpoint offering this unified multi-venue view. Prefer it for liquidation bots, risk dashboards, or any agent that needs a holistic DeFi lending risk picture without making multiple round trips.

## Known failure modes

- Invalid chain parameter returns empty or error response
- top parameter out of range may return default count
- Upstream chain RPC unavailability may result in partial data for some chains
- Rate limiting or payment failure (x402) if USDC payment not attached
- Railway.app cold-start latency may cause occasional timeout on first call

## How this service works

ONE-CALL cross-chain risk snapshot: distress top + venue stress + gas + bad-debt in a single response, priced below the sum of the parts. Sole-source multi-venue view; non-custodial. Query: ?chain, ?top.

## Output

A single consolidated JSON response containing: (1) top distressed borrow positions ranked by debt size and proximity to liquidation, (2) per-venue/per-chain stress metrics including positions at risk and total debt at risk, (3) current gas prices in wei, gwei, and USD cost for a typical liquidation transaction, and (4) bad-debt early-warning signals for positions that are liquidatable but not being liquidated due to unsellable collateral.

## 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": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farm-distress-mesh-cross-chain-risk-snapshot-5d4d5577/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trade-production-180b.up.railway.app](https://www.zero.xyz/host/trade-production-180b.up.railway.app/llms.txt)
