# RugGuard Watch Subscribe — Smart Contract Continuous Monitoring

> RugGuard Watch Subscribe — Smart Contract Continuous Monitoring is a paid API for AI agents from rugguard.redfleet.fr, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-10).

Subscribes to continuous rug-pull risk monitoring for a specific on-chain smart contract, delivering signed webhook alerts when risk events are detected.

## Facts

- Endpoint: POST https://rugguard.redfleet.fr/v1/watch/%7Bchain%7D/%7Bcontract%7D
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rugguard-watch-subscribe-smart-contract-continuous-monitoring-c63042a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SsYqgE_ixwR1vEmvUIGv1

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 rugguard-watch-subscribe-smart-contract-continuous-monitoring-c63042a6 -d '<json body>'
```

Example prompt: Set up a rug-pull watch on Ethereum contract 0xAbC123... and send alerts to https://mybot.example.com/rugalert — check every 60 seconds and keep the watch alive for 24 hours.

## When to prefer this

Choose this endpoint when you need ongoing, automated monitoring of a smart contract rather than a one-time pre-trade check. Ideal for AI agents that hold or track positions and need webhook-driven alerts if a contract's risk profile changes over time. Use the single-call check endpoint for a quick pre-trade scan; use this watch endpoint when you want persistent surveillance with auto-expiry and HMAC-verified callbacks.

## Known failure modes

- Invalid or non-existent contract address — 400 or 422 validation error
- Unsupported chain identifier — 400 bad request
- webhook_url missing or not HTTPS in production mode — 422 validation error
- Payment failure or insufficient USDC balance — 402 payment required
- Watch TTL or interval values out of acceptable range — 422 validation error
- Webhook endpoint unreachable — may create watch but first delivery fails silently

## How this service works

Pay-per-call rug check for crypto smart contracts. Built for AI agents on Agentic.market (x402). USDC fractional pricing, no API key.

## Output

Returns a watch_id, HMAC secret (store securely — only returned once), expiry timestamp, subscribed event types, check interval, and USDC cost settled. The HMAC secret is used to verify the X-RugGuard-Signature header on all incoming webhook POSTs from RugGuard.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "webhook_url"
 ],
 "properties": {
  "events": {
   "type": "array",
   "description": "Subset of the event catalog to subscribe to. Default = every event."
  },
  "ttl_hours": {
   "type": "integer",
   "description": "How long the watch lives before auto-expiring."
  },
  "webhook_url": {
   "type": "string",
   "description": "Where RugGuard POSTs signed webhooks. Must be HTTPS in prod (http allowed only when x402 is disabled / dev mode)."
  },
  "check_interval_seconds": {
   "type": "integer",
   "description": "Worker polling cadence."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "WatchSubscribeResponse",
 "required": [
  "watch_id",
  "chain",
  "contract",
  "expires_at",
  "check_interval_seconds",
  "events",
  "hmac_secret"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "title": "Chain"
  },
  "events": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Events"
  },
  "contract": {
   "type": "string",
   "title": "Contract"
  },
  "watch_id": {
   "type": "string",
   "title": "Watch Id"
  },
  "cost_usdc": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "title": "Cost Usdc",
   "description": "Amount settled at subscribe time. None when x402 is disabled (dev)."
  },
  "expires_at": {
   "type": "string",
   "title": "Expires At",
   "format": "date-time"
  },
  "hmac_secret": {
   "type": "string",
   "title": "Hmac Secret",
   "description": "Hex-encoded HMAC-SHA256 secret. Returned ONLY at subscribe time — store it securely. Used to validate the X-RugGuard-Signature on incoming webhooks."
  },
  "check_interval_seconds": {
   "type": "integer",
   "title": "Check Interval Seconds"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rugguard-watch-subscribe-smart-contract-continuous-monitoring-c63042a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rugguard.redfleet.fr](https://www.zero.xyz/host/rugguard.redfleet.fr/llms.txt)
