# Solana Token Pre-Trade Safety Check

> Solana Token Pre-Trade Safety Check is a paid API for AI agents from x402-endpoints.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Evaluates a Solana SPL token mint address for rug pull risk, honeypot flags, liquidity depth, deployer history, and holder concentration before buying, returning a structured PROCEED/CAUTION/AVOID verdict.

## Facts

- Endpoint: GET https://x402-endpoints.onrender.com/solana/pre-trade
- 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/solana-token-pre-trade-safety-check-fce7edc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tSJn2ppuhvg6BEY70vc4u

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 solana-token-pre-trade-safety-check-fce7edc8
```

Example prompt: Before I buy any of this token, run a full pre-trade safety check on Solana mint EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm — I want to know if it's a rug or honeypot, what the slippage looks like on a $1k trade, and whether the deployer still controls the mint.

## When to prefer this

Use this endpoint when an AI agent needs a single all-in-one pre-trade risk verdict for a Solana SPL token — covering security, liquidity, deployer, and concentration in one call — rather than assembling individual signals from separate APIs. Prefer this over generic blockchain explorers when you need structured machine-readable verdicts with weighted scoring rather than raw on-chain data. Ideal for autonomous trading agents, DeFi copilots, or wallet UIs that need to gatekeep token purchases based on risk level.

## Known failure modes

- Invalid or non-existent mint address returns an error field with a descriptive message
- Token not found on supported DEXes (Raydium etc.) may return incomplete market module data
- Very new or illiquid tokens may have insufficient on-chain data for full scoring
- Network/RPC unavailability may cause stale or missing data freshness fields
- Payment failure (insufficient USDC or wrong chain) prevents endpoint access entirely

## How this service works

All-in-one Solana pre-trade decision in ONE call: BUY-SAFE/CAUTION/AVOID fusing four scored modules — token security, EXECUTABLE liquidity depth (estimated slippage at $100/$1k/$10k), deployer history/control and holder concentration. Should I buy or avoid this Solana token? Full token due-diligence in one call — replaces 3-4 lookups; built for a trading / sniping agent's risk-review pipeline. Solana trading safety decision and buy/avoid verdict.

## Output

Returns a structured JSON verdict (PROCEED, CAUTION, or AVOID) with a confidence score (0-1), per-module sub-scores and flags for token security (rug/honeypot static and behavioral flags), liquidity depth with slippage estimates at $100/$1k/$10k trade sizes, deployer authority status (renounced or not), holder concentration (top-1 and top-5 share), and market data (DEX, symbol, FDV, liquidity USD, pool age, 24h volume, price change). Also includes timestamped data freshness metadata and source provenance.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "mint"
     ],
     "properties": {
      "mint": {
       "type": "string",
       "description": "SPL token mint address (base58) to evaluate before buying"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "error": null,
  "query": {
   "mint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"
  },
  "cached": false,
  "market": {
   "dex": "raydium",
   "symbol": "WIF",
   "fdv_usd": 9000000,
   "liquidity_usd": 320000,
   "pool_age_hours": 5200,
   "volume_24h_usd": 1200000,
   "price_change_24h_pct": 4.1
  },
  "modules": {
   "token_security": {
    "status": "ok",
    "sub_score": 70,
    "static_flags": [],
    "behavioral_flags": [],
    "behavioral_status": "ok"
   },
   "liquidity_depth": {
    "note": "Estimated from pooled liquidity via a constant-product model; real slippage depends on routing.",
    "status": "ok",
    "reasons": [
     {
      "code": "MODERATE_DEPTH",
      "label": "~0.6% impact on a $1k trade",
      "weight": 0.2
     }
    ],
    "sub_score": 70,
    "liquidity_usd": 320000,
    "slippage_estimates": [
     {
      "trade_usd": 100,
      "est_price_impact_pct": 0.06
     },
     {
      "trade_usd": 1000,
      "est_price_impact_pct": 0.62
     },
     {
      "trade_usd": 10000,
      "est_price_impact_pct": 5.88
     }
    ]
   },
   "deployer_history": {
    "note": "Deployer no longer controls the mint.",
    "status": "renounced",
    "reasons": [
     {
      "code": "AUTHORITIES_RENOUNCED",
      "label": "Mint & freeze authority renounced",
      "weight": -0.4
     }
    ],
    "sub_score": 80,
    "controller": null
   },
   "holder_concentration": {
    "note": "Largest account may be an AMM/LP pool, not a malicious whale.",
    "status": "ok",
    "reasons": [
     {
      "code": "MODERATE_CONCENTRATION",
      "label": "Top account 34%",
      "weight": 0.2
     }
    ],
    "sub_score": 60,
    "top1_share": 0.34,
    "top5_share": 0.58
   }
  },
  "reasons": [
   {
    "code": "MODERATE_DEPTH",
    "label": "~3.1% impact on a $1k trade",
    "weight": 0.2
   },
   {
    "code": "AUTHORITIES_RENOUNCED",
    "label": "Mint & freeze authority renounced — deployer retains no control",
    "weight": -0.4
   }
  ],
  "verdict": "CAUTION",
  "timestamp": "2026-06-29T12:00:00Z",
  "confidence": 0.75,
  "disclaimer": "All-in-one pre-trade decision (security + executable depth + deployer + concentration). Heuristic, not advice. Always DYOR.",
  "data_freshness": {
   "as_of": "2026-06-29T12:00:00Z",
   "sources": [
    "Solana RPC",
    "DexScreener"
   ],
   "age_seconds": 0,
   "kill_switch": false,
   "retrieved_at": "2026-06-29T12:00:00Z",
   "deterministic": false,
   "behavioral
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-token-pre-trade-safety-check-fce7edc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-endpoints.onrender.com](https://www.zero.xyz/host/x402-endpoints.onrender.com/llms.txt)
