# AgentSpendGuard Token Risk Scanner

> AgentSpendGuard Token Risk Scanner is a paid API for AI agents from api-production-2800.up.railway.app, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Scans an EVM/Base token address for security risks including honeypot detection, tax analysis, liquidity checks, holder concentration, and mint controls, returning a JSON verdict with score, reasons, and recommended action.

## Facts

- Endpoint: POST https://api-production-2800.up.railway.app/v1/token-risk
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-production-2800-up-railway-app-7a301d15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KK2a5dvM2kSXy80FBMP9x

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-production-2800-up-railway-app-7a301d15 -d '<json body>'
```

Example prompt: Before my agent swaps into token 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base, run a full token risk scan — check for honeypot, tax, liquidity, mint controls, and holder concentration, and tell me whether it's safe to proceed.

## When to prefer this

Use this endpoint when an AI agent or DeFi bot needs a fast, structured go/no-go decision before swapping or interacting with an unknown EVM or Base token. Prefer it over manual contract inspection when you need a single composite risk score combining honeypot detection, tax analysis, liquidity, and holder data in one call. Especially valuable for autonomous agents that cannot pause for human review.

## Known failure modes

- Unknown or undeployed contract address returns an error or low-confidence result
- Token on unsupported chain returns chain-not-supported error
- Insufficient on-chain liquidity data causes incomplete liquidity evidence
- GoPlus or DexScreener upstream API unavailability causes degraded scan
- Malformed or missing contract address returns 400 validation error
- Payment failure (x402) blocks the request before scan executes

## Output

A strict JSON object containing a verdict (allow/caution/block), a numeric risk score, an array of reason codes explaining the verdict, individual security flags (honeypot, proxy, mint authority, buy/sell tax, holder count, liquidity), and a recommended action for the calling agent.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "tokenAddress"
     ],
     "properties": {
      "chainId": {
       "enum": [
        1,
        8453,
        84532,
        10,
        42161,
        137
       ],
       "type": "integer",
       "default": 8453
      },
      "tokenAddress": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "minHolderCount": {
       "type": "integer",
       "default": 100
      },
      "minLiquidityUsd": {
       "type": "number",
       "default": 10000
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "score": {
       "type": "integer",
       "maximum": 100,
       "minimum": 0
      },
      "reasons": {
       "type": "array"
      },
      "verdict": {
       "enum": [
        "allow",
        "caution",
        "block"
       ],
       "type": "string"
      },
      "decision": {
       "type": "object",
       "properties": {
        "retryable": {
         "type": "boolean"
        },
        "shouldPay": {
         "type": "boolean"
        },
        "requiresHumanReview": {
         "type": "boolean"
        },
        "maxRecommendedPriceUsd": {
         "type": "number"
        }
       }
      },
      "evidence": {
       "type": "array"
      },
      "riskLevel": {
       "enum": [
        "low",
        "medium",
        "high",
        "critical"
       ],
       "type": "string"
      },
      "recommendedAction": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-production-2800-up-railway-app-7a301d15/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-2800.up.railway.app](https://www.zero.xyz/host/api-production-2800.up.railway.app/llms.txt)
