# Plexa Pre-Trade Safety Check

> Plexa Pre-Trade 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-15).

Returns an economic-safety verdict (ok/caution/avoid) for a Base-chain ERC-20 token, covering liquidity, holder concentration, honeypot/fee-on-transfer detection, oracle sanity, and an executable quote.

## Facts

- Endpoint: POST https://api.getplexa.com/v1/pretrade/check
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plexa-pre-trade-safety-check-eb9f53c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kFZFywJGNWIjbpzsMo_Gf

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-pre-trade-safety-check-eb9f53c6 -d '<json body>'
```

Example prompt: Before I buy, can you run a Plexa pre-trade safety check on this Base token — 0x1234567890abcdef1234567890abcdef12345678 — for a $2000 position, and tell me if it's ok, caution, or avoid?

## When to prefer this

Use this endpoint when an AI agent or user wants to vet an unknown or suspicious ERC-20 token on Base before executing a trade — especially when honeypot detection, holder concentration, liquidity depth, and an actionable price quote are all needed in a single call. Prefer this over generic price feeds or DEX aggregators when safety/risk assessment is the primary concern, not just price discovery.

## Known failure modes

- Invalid or non-Base ERC-20 address returns a 400/422 error
- Token too new or insufficient on-chain data may yield an inconclusive verdict
- Oracle data unavailable for illiquid tokens
- Network congestion on Base may delay quote freshness
- Payment failure (insufficient USDC or x402 protocol error) blocks the call

## 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. risk_profile: token age, holder concentration, liquidity, transfer limits. Not financial advice.

## Output

A structured verdict object containing: a top-level safety rating (ok/caution/avoid), breakdown of liquidity structure, holder concentration metrics, token age, honeypot and fee-on-transfer detection flags, oracle price sanity result, and an executable swap quote for the requested USD notional size.

## 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-pre-trade-safety-check-eb9f53c6/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)
