# x402-seller Onchain Liquidity Drain Detector

> x402-seller Onchain Liquidity Drain Detector is a paid API for AI agents from x402-seller-m8nx.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Monitors and returns real-time liquidity reserve trends for a DEX token contract to detect in-progress rug pulls via liquidity drainage signals.

## Facts

- Endpoint: GET https://x402-seller-m8nx.onrender.com/onchain/liquidity
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-seller-onchain-liquidity-drain-detector-3dd6fa03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d2-jIQyVA9aYzoA4EfPJg

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 x402-seller-onchain-liquidity-drain-detector-3dd6fa03
```

Example prompt: Check if liquidity is actively being drained from this token on Ethereum — contract address 0xABC123... — I want to know if a rug pull is happening right now.

## When to prefer this

Choose this endpoint when you need to detect an active, in-progress liquidity drain (rug pull) for a specific token contract in real time. Unlike static rug-check APIs (GoPlus, Honeypot.is), this endpoint uses self-collected reserve time-series data to identify declining liquidity trends as they happen — a signal that cannot be obtained from free one-shot APIs. Prefer this when you already hold or are monitoring a specific token and need continuous or on-demand drain detection, rather than a comprehensive multi-signal rug screen (use /vet for that).

## Known failure modes

- Invalid or non-existent contract address returns error or empty result
- Unsupported chain identifier may return an error or fallback to default chain
- Newly launched token with insufficient historical reserve data may return limited trend signal
- Network latency or Render.com cold-start may cause slow first response
- Contract address not associated with a DEX pool may return no liquidity data

## How this service works

Rug protection and decision-ready intelligence for autonomous trading agents. Keyless by design: no signup, no API key — pay a cent per request in USDC (x402). The /alpha/launches LAUNCH RADAR discovers what just launched AND rug-screens every candidate in one call, ranked per-token verdicts — the proactive 'give me safe alpha' call. /vet gives a single-token go/no-go in ONE call by fusing a COMPOSITE rug score (GoPlus static analysis + a LIVE Honeypot.is buy/sell simulation + serial-rugger check) with our SELF-COLLECTED liquidity-drain trend — a rug-in-progress signal that exists nowhere for free because it requires collecting reserves over time. One call is cheaper than the inference tokens you'd burn stitching 4 free APIs, and it stops your agent losing its whole position to a honeypot. Also: /onchain/liquidity drain detector, /screen batch watchlist check, /brief market regime, and raw feeds (prices, stocks, DEX pools, launches, perp funding/OI).

## Output

Returns a time-series of onchain liquidity reserve snapshots for the given token contract, with a derived drain trend signal indicating whether reserves are declining in a pattern consistent with an active rug pull. Because this data is self-collected over time, it surfaces a rug-in-progress signal unavailable from static APIs.

## 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",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "eth",
        "bsc",
        "polygon",
        "arbitrum",
        "optimism"
       ],
       "type": "string",
       "default": "base"
      },
      "address": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "liquidity falling fast — possible rug/exit in progress",
  "chain": "base",
  "address": "0x4ed4…",
  "verdict": "draining_fast",
  "data_points": 63,
  "change_pct_1h": -31.4,
  "window_minutes": 190,
  "change_pct_window": -44.2,
  "liquidity_usd_now": 812000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-seller-onchain-liquidity-drain-detector-3dd6fa03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-m8nx.onrender.com](https://www.zero.xyz/host/x402-seller-m8nx.onrender.com/llms.txt)
