# x402node Token Safety Check

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

Analyzes an ERC20 token contract on Base for rug-pull and honeypot risks, returning a 0-100 risk score and verdict

## Facts

- Endpoint: GET https://api.x402node.dev/wallet/token-safety
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-f1317a2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D1x2xXzSvbUI9d5nBNeUn

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 api-x402node-dev-f1317a2f
```

Example prompt: Before I buy this token, can you run a safety check on the ERC20 contract at 0x4200000000000000000000000000000000000006 on Base and tell me the risk score and whether it's safe — specifically if it has mint functions, a blacklist, or if ownership is still active?

## When to prefer this

Use this endpoint when an AI trading agent or DeFi automation needs pre-transaction due diligence on an unknown ERC20 token on Base L2. Prefer this over generic contract explorers when you need a structured risk score and specific rug-pull indicators (honeypot patterns, mint authority, blacklist functions) without building your own bytecode scanner.

## Known failure modes

- Invalid or non-existent contract address returns an error
- Contract not deployed on Base mainnet causes lookup failure
- Non-ERC20 contract address may return incomplete analysis
- Network timeout from RPC provider
- Payment failure if USDC balance insufficient for $0.10 fee

## How this service works

Token safety check before buying or interacting: given an ERC20 contract on Base, returns risk_score 0-100 and verdict. Scans bytecode for dangerous functions (mint, blacklist, pausable transfers, adjustable fees), checks ownership renounced vs active, ERC20 interface completeness, and supply concentration. Red flags surface honeypot/rug indicators. For AI trading agent pre-transaction due diligence, automated token vetting, rug-pull avoidance.

## Output

Returns a risk_score between 0 and 100 and a verdict (safe/risky/dangerous), along with flags for dangerous bytecode patterns such as mint, blacklist, pausable transfers, and adjustable fees, plus ownership renouncement status and supply concentration metrics.

## Example request

```json
{
 "chain": "base",
 "token": "0x4200000000000000000000000000000000000006"
}
```

## 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": {
      "token": {
       "type": "string",
       "description": "ERC20 contract address (required)"
      },
      "toAddress": {
       "type": "string",
       "description": "ToAddress (optional)"
      },
      "fromAddress": {
       "type": "string",
       "description": "FromAddress (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-f1317a2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
