# Plexa Token Safety Check

> Plexa Token Safety Check is a paid API for AI agents from api.getplexa.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Checks whether a token on Base can be sold by detecting on-chain exit traps such as empty liquidity pools, insufficient exit liquidity, or disabled trading gates (honeypot patterns).

## Facts

- Endpoint: POST https://api.getplexa.com/v1/token-safety
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plexa-token-safety-check-5752cc82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QviEKC03nUskcwd-gkVXc

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 plexa-token-safety-check-5752cc82 -d '<json body>'
```

Example prompt: Before I buy, can you run a Plexa token safety check on 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base with a $2000 trade size to make sure I can actually sell it and there's no honeypot or liquidity trap?

## When to prefer this

Use this endpoint when an AI agent or trading bot needs to verify on-chain exit conditions for a Base ERC-20 token before executing a buy, especially to detect honeypots, drained liquidity pools, or disabled trading gates. Prefer this over general token analytics when you need a definitive, measured (not predicted) on-chain trap check with an executable quote for a specific USD size.

## Known failure modes

- 400 error if token address is a symbol (e.g. 'WETH') instead of a 0x hex address
- 422 error if a non-Base chain is specified (Base-tuned flags only, other chains unsupported)
- 400 error if sizeUSD uses a thousands separator like '1,000' instead of '1000'
- Token address fails 0x + 40 hex pattern validation
- Chain enum value is not exactly as specified (case-sensitive)

## How this service works

Plexa /v1/pretrade/check — pre-trade token safety check on Base: can you still sell this token? avoid fires only on a trap proven on-chain now: no pool to exit into, an exit pot under 5% of your size, or the trading gate off (the honeypot shape). A drained pot is what a rug leaves behind — measured, not predicted. clear = no provable trap, NOT safe. Alias: same engine and price as /v1/pretrade/check.

## Output

Returns structured safety flags indicating whether a provable on-chain exit trap exists: no liquidity pool to exit into, exit liquidity under 5% of the requested trade size, or trading gate disabled (honeypot). Also returns an executable quote for the specified USD size. A 'clear' result means no provable trap was detected — not a guarantee of safety.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "polygon",
    "matic",
    "arbitrum",
    "arbitrum-one",
    "arb",
    "eip155:8453",
    "eip155:137",
    "eip155:42161"
   ],
   "type": "string",
   "description": "Optional, default \"base\". One of: base | polygon | matic | arbitrum | arbitrum-one | arb | eip155:8453 | eip155:137 | eip155:42161 — case-sensitive (see `enum`). The safety flags are Base-tuned, so a non-base value currently answers 422 rather than returning Base-calibrated flags for another chain."
  },
  "token": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "ERC-20 to vet before buying. 0x + 40 hex (see `pattern`) — a symbol like \"WETH\" is rejected with 400."
  },
  "sizeUSD": {
   "type": "string",
   "pattern": "^(?:0\\.\\d*[1-9]\\d*|[1-9]\\d*(?:\\.\\d+)?)$",
   "maxLength": 78,
   "description": "Optional USD notional for the executable-quote sub-result, default \"1000\". A STRING, not a number; positive, no thousands separator (\"1,000\" is rejected) — see `pattern`."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plexa-token-safety-check-5752cc82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getplexa.com](https://www.zero.xyz/host/api.getplexa.com/llms.txt)
