# x402.onchainexpat.com Token Metadata & Security Analysis

> x402.onchainexpat.com Token Metadata & Security Analysis is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Returns comprehensive metadata and security analysis for a cryptocurrency token, including contract details, risk flags, and on-chain characteristics

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-crypto/token-metadata
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-onchainexpat-com-e2b9fe43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rmlW6dyUMCpTHxB-Cqv7_

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 x402-onchainexpat-com-e2b9fe43 -d '<json body>'
```

Example prompt: Can you pull up the full token metadata and security analysis for the contract 0x1234...abcd on Base — I want to know if it's safe, who owns it, what the supply looks like, and whether there are any rug-pull red flags?

## When to prefer this

Use this endpoint when you need both token metadata AND security/risk analysis in a single call, especially for DeFi due diligence on unknown or new tokens. Prefer this over a plain price endpoint when the user's concern is safety, legitimacy, or contract-level details rather than just market data.

## Known failure modes

- Invalid or unrecognized contract address returns an error
- Token not found on the specified chain returns 404 or empty result
- Unsupported blockchain network returns an error
- Malformed request body returns 400 bad request
- Payment not included or insufficient USDC returns 402 payment required

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

A JSON object containing comprehensive token metadata such as name, symbol, decimals, total supply, contract address, deployer/owner details, liquidity information, and a security analysis section with risk flags (e.g. honeypot detection, ownership renouncement status, proxy contracts, blacklist functions, and an overall risk score).

## Example request

```json
{
 "chain": "base",
 "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "Blockchain (default: base)"
  },
  "address": {
   "type": "string",
   "description": "Token contract address (0x + 40 hex chars), e.g. '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "name": {
     "type": "string"
    },
    "chain": {
     "type": "string"
    },
    "pools": {
     "type": "array",
     "description": "Top liquidity pools for this token"
    },
    "safety": {
     "type": "object",
     "description": "Security analysis including honeypot, taxes, mintable, blacklist checks"
    },
    "symbol": {
     "type": "string"
    },
    "address": {
     "type": "string"
    },
    "decimals": {
     "type": "integer"
    },
    "price_usd": {
     "type": "number"
    },
    "market_cap": {
     "type": "number"
    },
    "risk_level": {
     "type": "string",
     "description": "Risk level: minimal, low, medium, high"
    },
    "risk_score": {
     "type": "integer",
     "description": "Risk score 0-100 (higher = more risky)"
    },
    "volume_24h": {
     "type": "number"
    },
    "holder_count": {
     "type": "integer"
    },
    "liquidity_usd": {
     "type": "number"
    },
    "price_change_24h": {
     "type": "number"
    },
    "contract_verified": {
     "type": "boolean"
    }
   }
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-onchainexpat-com-e2b9fe43/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
