# Grey Ridge Signals — Pre-trade Token Safety Gate (Base ERC-20)

> Grey Ridge Signals — Pre-trade Token Safety Gate (Base ERC-20) is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-21).

Returns a GO, HOLD, or BLOCK decision for a proposed ERC-20 token swap on Base mainnet, combining honeypot detection, admin-control checks, and Uniswap v3 price-impact analysis.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/gate/swap?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grey-ridge-signals-pre-trade-token-safety-gate-base-erc-20-ffbac8e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5zfk1nR2gnF3zbsQrnU6g

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 grey-ridge-signals-pre-trade-token-safety-gate-base-erc-20-ffbac8e6
```

Example prompt: Before my agent buys $500 of 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, run a pre-trade safety gate check on it — I want to know if it's a GO, HOLD, or BLOCK and what the risk score and price impact look like.

## When to prefer this

Use this endpoint when an AI trading agent needs a fast, pre-trade safety gate on any Base ERC-20 before executing a swap — especially when honeypot risk, admin-control lock risk, or Uniswap v3 liquidity depth relative to trade size are concerns. Prefer this over generic token-info endpoints when you need an actionable GO/HOLD/BLOCK verdict rather than raw market data, and when the trade is on Base mainnet specifically.

## Known failure modes

- Invalid or non-checksummed token address returns an error response
- Token not found on Base mainnet yields no liquidity data and likely a BLOCK decision
- Non-numeric notional_usd value causes a bad request error
- Missing required token param returns a 400-level error
- Payment not included or insufficient results in x402 payment required response

## How this service works

Pre-trade token security GO / HOLD / BLOCK gate for an autonomous Base trading agent: pass token, side (buy|sell) and notional_usd; get a one-word decision plus reason in one fast call. Combines honeypot/sellability simulation, admin-control checks and Uniswap v3 WETH-pool liquidity vs. your trade size (price-impact guard). Use when an autonomous trading agent needs a GO/HOLD/BLOCK check right before a Base swap.

## Output

A JSON object containing: decision (one of 'go', 'hold', or 'block'), a human-readable reason string, a risk_score integer (0-100), liquidity_usd (Uniswap v3 WETH-pool liquidity in USD), impact_pct_of_pool (your trade's price impact as a percentage), plus echoed token, side, and notional_usd fields.

## 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": [
      "token"
     ],
     "properties": {
      "side": {
       "type": "string",
       "description": "buy or sell (optional, default buy)"
      },
      "token": {
       "type": "string",
       "description": "0x-prefixed ERC-20 contract on Base mainnet (only required param)"
      },
      "notional_usd": {
       "type": "string",
       "description": "intended trade size in USD (optional, default 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "token",
      "side",
      "notional_usd",
      "decision",
      "reason",
      "verdict",
      "risk_score",
      "liquidity_usd",
      "impact_pct_of_pool",
      "flags",
      "token_meta",
      "analyzed_at",
      "disclaimer",
      "note"
     ],
     "properties": {
      "note": {
       "type": "null"
      },
      "side": {
       "type": "string"
      },
      "flags": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "token": {
       "type": "string"
      },
      "reason": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      },
      "decision": {
       "type": "string"
      },
      "disclaimer": {
       "type": "string"
      },
      "risk_score": {
       "type": "integer"
      },
      "token_meta": {
       "type": "object",
       "required": [
        "symbol",
        "name",
        "decimals"
       ],
       "properties": {
        "name": {
         "type": "string"
        },
        "symbol": {
         "type": "string"
        },
        "decimals": {
         "type": "integer"
        }
       }
      },
      "analyzed_at": {
       "type": "string"
      },
      "notional_usd": {
       "type": "integer"
      },
      "liquidity_usd": {
       "type": "integer"
      },
      "impact_pct_of_pool": {
       "type": "number"
      }
     }

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": null,
  "side": "buy",
  "flags": [
   "no honeypot, deep liquidity, no high-risk admin controls detected"
  ],
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "reason": "token passes safety checks",
  "verdict": "SAFE",
  "decision": "go",
  "disclaimer": "Heuristic risk signal, not financial advice or a guarantee.",
  "risk_score": 25,
  "token_meta": {
   "name": "USD Coin",
   "symbol": "USDC",
   "decimals": 6
  },
  "analyzed_at": "2026-10-20T21:45:00.000Z",
  "notional_usd": 500,
  "liquidity_usd": 158115578,
  "impact_pct_of_pool": 0.0003
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grey-ridge-signals-pre-trade-token-safety-gate-base-erc-20-ffbac8e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
