# 1gateway Base ERC-20 Token Risk Analysis

> 1gateway Base ERC-20 Token Risk Analysis is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-11).

Analyzes risk signals for a Base mainnet ERC-20 token contract, returning proxy/admin status, ownership, dangerous selectors, liquidity pool presence, and buy/sell simulation results.

## Facts

- Endpoint: GET https://1gateway.dev/v1/onchain/base/token-risk?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-base-erc-20-token-risk-analysis-e0099a46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G1NbVQ9Uj5ADL-kMrB-ir

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 1gateway-base-erc-20-token-risk-analysis-e0099a46
```

Example prompt: Before I buy any of this token, can you run a risk check on the Base contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — I want to know if the owner is renounced, if there are mint or blacklist functions, and whether buy/sell simulation passes?

## When to prefer this

Use this endpoint when an agent or user needs to vet a specific Base mainnet ERC-20 token contract before trading, integrating, or listing it. It is the right choice when you need structured on-chain risk signals — not a binary safe/unsafe verdict — covering contract upgradability, ownership, dangerous function selectors, DEX liquidity, and trade simulation in a single call. Prefer this over generic block explorers when you need machine-readable risk data with block-level evidence for agent decision-making.

## Known failure modes

- 400 returned for non-contract addresses (EOAs) or malformed/invalid checksum addresses — not charged
- 400 returned for addresses not matching 0x + 40 hex pattern
- Token not deployed on Base mainnet returns error or notChecked signals
- RPC timeouts may result in partial results with populated errors array
- Some checks may be skipped and listed in notChecked if on-chain data is unavailable

## How this service works

Use when an agent must vet a Base ERC-20 before buying or integrating it. Input: address. Output: JSON risk signals with block+evidence: proxy+admin, owner (renounced/EOA/contract/undeclared), mint/pause/blacklist/fee selectors, Uniswap v2/v3/v4 (incl. hooked launch pools, hook permissions) + Aerodrome pools, buy/sell simulation, notChecked. Signals, not a safe verdict. Bad input/EOA: 400, not charged. Example: ?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

## Output

A JSON object containing: chain and block reference, risk level summary (low/medium/high signal counts), token metadata (name, symbol, decimals, total supply), contract details (owner type, proxy/admin flags), liquidity pool listings across Uniswap v2/v3/v4 and Aerodrome, detected dangerous function selectors (mint, pause, blacklist, fee), buy/sell simulation outcome, individual risk signals each with severity and on-chain evidence, and a list of checks not performed.

## 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": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
       ],
       "description": "Token contract on Base mainnet (0x + 40 hex; mixed case must be a valid EIP-55 checksum). EOAs, bad checksums → 400 before payment (not charged)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "chainId",
      "address",
      "asOfBlock",
      "status",
      "riskLevel",
      "summary",
      "token",
      "contract",
      "liquidity",
      "supplyHeld",
      "simulation",
      "signals",
      "checksRun",
      "notChecked",
      "errors",
      "rpc",
      "disclaimer",
      "cache"
     ],
     "properties": {
      "rpc": {
       "type": "object",
       "additionalProperties": true
      },
      "cache": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "token": {
       "type": "object",
       "properties": {
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "symbol": {
         "type": [
          "string",
          "null"
         ]
        },
        "decimals": {
         "type": [
          "integer",
          "null"
         ]
        },
        "totalSupply": {
         "type": [
          "number",
          "null"
         ]
        },
        "totalSupplyRaw": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "errors": {
       "type": "array",
       "items": {}
      },
      "status": {
       "type": "string"
      },
      "address": {
       "type": "string"
      },
      "chainId": {
       "type": "integer"
      },
      "signals": {
       "type":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-base-erc-20-token-risk-analysis-e0099a46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
